_LE: integer x integer -> boolean
_LE: real x real -> boolean
_LE: string x string -> boolean
x < y
The binary infix operator "<" realises the "less than" relation on numerical and string objects. The result is TRUE if x is less than y, FALSE otherwise.
On integer and real objects, "<" is defined in the usual way; though caution is advised when using reals, since by inherent inaccuracies of real arithmetics, the result might be sometimes incorrect. Mixing integer and real objects is allowed, in this case, an automatic type conversion from integer to real is done by the system.
On string objects, "<" is defined with respect to the standard lexicographic ordering on ASCII encoded character strings. Thus basically, strings are ordered as they would be in a dictionary; however, numerals appear before uppercase letters and those before lowercase letters. For the exact positions of special characters, please refer to any ASCII table.
In expressions, "<" binds stronger than the boolean operators, but weeker than the arithmetic, length, or list access operators.
> 21 < 12
> 0.3 < 0.4
> 1 < 0.999
> "any string" < "Any String"
> "any" < "any string"
See also: Operator "<=" (_LEQ), Operator ">" (_GR), Operators and Expressions.