You are viewing the documentation for Blueriq 17. Documentation for other versions is available in our documentation directory.

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Current »

EQUALS


Compares two strings and returns TRUE if and only if they are equal. This function is case sensitive.


Only use this function if you need a case sensitive comparison of two strings. If you want to compare strings case insensitive, use the '=' operator instead.


Syntax

string1 EQUALS string2
EQUALS ( string1 , string2 )


Inputs

  • string1 - An attribute of base type string, an expression that results in a string or a constant string value.
  • string2 - An attribute of base type string, an expression that results in a string or a constant string value.


Return type

  • boolean


Example

ExpressionResultTypeNote
"hello" EQUALS "hello"TRUEboolean
EQUALS ( "hello" , "Hello" )FALSEbooleanFALSE because EQUALS is case sensitive
"hello" EQUALS "hello "FALSEbooleanFALSE because of trailing space
EQUALS ( "" , "" )TRUEboolean


Back to Top

 

  • No labels