You are viewing the documentation for Blueriq 15. Documentation for other versions is available in our documentation directory.
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
Expression | Result | Type | Note |
---|---|---|---|
"hello" EQUALS "hello" | TRUE | boolean | |
EQUALS ( "hello" , "Hello" ) | FALSE | boolean | FALSE because EQUALS is case sensitive |
"hello" EQUALS "hello " | FALSE | boolean | FALSE because of trailing space |
EQUALS ( "" , "" ) | TRUE | boolean |
Overview
Content Tools