([value1: any, value2: any]): boolean
The _lt
operator tests if the first value is less than the second equal. It takes an array of two values to test.
The
_lt
operator tests using the javascript less than operator. You can find a description of the algorithm used to compare two values here.
Arguments
array
An array of two values to compare.
Examples
Two numbers:
_lt:
- 4
- 3
Returns: false
_lt:
- 1
- 1
Returns: false
_lt:
- _sum:
- 3
- 4
- 8
Returns: true
Two strings:
_lt:
- "a"
- "b"
Returns: true