Versions Compared

Key

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

EQUALS


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

UI Text Box
type
Warning

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

  • 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