Versions Compared

Key

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

EQUALS

EQUALS compares


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

UI Text Boxtype
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
  • boolean


Example

ExpressionResultTypeNote
"hello" EQUALS "hello"TRUE
Boolean
boolean
EQUALS ( "hello" , "Hello" )FALSE
Boolean
booleanFALSE because EQUALS is case sensitive
"hello" EQUALS "hello "FALSE
Boolean
booleanFALSE because of trailing space
EQUALS ( "" , "" )TRUE
Boolean
boolean


Back to top