Less Than | LESS_THAN
Syntax
LESS_THAN( [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 less than the OTHER. FALSE, otherwise.Description
Determine if a value is less than another. Comparison is done structurally. 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
LESS_THAN(1, 2) # returns TRUE
LESS_THAN(2, 1) # returns FALSE
LESS_THAN(1, 1) # returns FALSE
LESS_THAN("abc", "abd") # returns TRUE
LESS_THAN([1, 2, 3], [1, 2, 3]) # returns FALSE
LESS_THAN([1, 2, 3], [1, 2, 4]) # returns TRUE
LESS_THAN([1, 2, 3], [1, 2]) # returns FALSE
LESS_THAN([1, 2, 3], [1, 3]) # returns TRUE
LESS_THAN(null, null) # returns FALSE