Equal to | EQUAL
Syntax
EQUAL( [input], [other] )
Parameters
input
Any data may be used as the input.
other
Any data may be used as the other.
Return Value
TRUE if the VALUE is equal to the OTHER. FALSE, otherwise.Description
Determine if a value is equal to another. Comparison is done structurally without any type cooercion. If values of different types are provided, the comparison is done by type with the following precedence (from lowest to highest):- UNDEFINED
- NULL
- BOOLEAN
- NUMBER
- STRING
- DATE
- ARRAY / LIST
- OBJECT / MAP
Examples
EQUAL(1, 2) # returns FALSE
EQUAL(2, 1) # returns FALSE
EQUAL(1, 1) # returns TRUE
EQUAL("abc", "abd") # returns FALSE
EQUAL([1, 2, 3], [1, 2, 3]) # returns TRUE
EQUAL([1, 2, 3], [1, 2, 4]) # returns FALSE
EQUAL([1, 2, 3], [1, 2]) # returns FALSE
EQUAL([1, 2, 3], [1, 3]) # returns FALSE
EQUAL(null, null) # returns TRUE