$e1 < $e2
$e1.lt($e2)
Indicates whether the result of e1 is less than that of e2.
| Name | Type | Description | Mandatory | Default |
|---|---|---|---|---|
| e1 | Number/string/set | Object to be compared with e2. |
yes | |
| e2 | Number/string/set | Object to be compared with e1. |
yes |
Type: Boolean
true, if the result of the evaluation says that e1 is smaller than e2.
1 < 2
Output: true
list(1, 2, 3).lt(list(1, 2, 4))
Output: true
Since sets are compared element by element, the first set is smaller than the second because the number 3 is smaller than the number 4 (see comparison operators).
list(1, 2, 3).lt(list(1, 2, 3))
Output: false
The sets are the same size.