Description
The < operator takes two operands and compares them. If one operand is of integral type and the other is of real type then the integral operand is converted to real before the comparison is made. The result of this operation is of boolean type and is true if the left operand is less than the right operand, and false otherwise.
For operands of string type the < operator compares the lexical ordering of the operands.
Example
For example
23 < 23 results in false
-23 < -23 results in false
23 < 23.0 results in false
23.0 < 23 results in false
2 < 3 results in true
2 < -3 results in false
-2 < -3 results in false
3 < 2 results in false
-3 < 2 results in true
-3 < -2 results in true
and
'abc' < 'abc' results in false
'abc' < 'abcd' results in true
'abc' < 'ab' results in false
'abc' < 'abd' results in true
'abc' < 'aac' results in false
'abc' < 'b' results in true