Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Panel
bgColorwhite

EQUALS


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


UI Text Box
typewarning

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

Code Block
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

  • Booleanboolean


Example

ExpressionResultTypeNote
"hello" EQUALS "hello"TRUEBooleanboolean
EQUALS ( "hello" , "Hello" )FALSEBooleanbooleanFALSE because EQUALS is case sensitive
"hello" EQUALS "hello "FALSEBooleanbooleanFALSE because of trailing space
EQUALS ( "" , "" )TRUEBooleanboolean


Back to top