(< item1 item2 ...)
The first is less than the others.
The less-than function returns a T (true) or a nil (false):
- If the item1 is less than item2 (and so on), this function returns a T.
- If item2 is greater or equal to the first, this function returns nil.
If this function contains more than two items, the function returns T when each item to the right is less than the item on its left. The items can be numbers or strings.
Examples
This expression | Returns |
---|---|
(< 9 11) | T |
(< 25 20) | nil |
(< 2 6 7) | T |
(< 2) | T |
(< -2) | T |
(< "x" "x") | nil |
(< "x" "y" "z") | T |
NOTE This function is the opposite of the >=(Greater Than or Equal To operator) function.
Tell me about...
(cond (statement1 result1 ...) ...)