Less Than
operand1 < operand2
- If operand1 and operand2 both result in numbers,
the expression results in True if operand1 is
numerically less than operand2.
- If both operands result in strings, the expression results in the True if operand1 lexically precedes operand2 (that is, if operand1 would precede operand2 in a dictionary), using the ASCII character code.
- If both operands result in lists, the expression
results in True if the first element of operand1 which is not equal to the corresponding element of operand2, is less than that element. If all the corresponding elements are equal, but operand2 has more elements than operand2, the result of the expression is also True.
- Otherwise the expression results in False.
Herman Venter
This is Slim documentation as snarfed on 27 May 1999 by dB.