Smaller or equal
Syntax
$e1 <= $e2
$e1.le($e2)
Description
Boolean expression that evaluates to true
if the result of evaluating e1
is less than or equal to the result of evaluating e2
.
Parameter
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 |
Return value
Type: Boolean
true
, if the result of the evaluation says that e1
is less than or equal to e2
.
Examples
Numbers
1 <= 1
Output: true
Unequal sets
list(1, 2, 3).le(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).
Equal sets
list(1, 2, 3).le(list(1, 2, 3))
Output: true