User Guide

156 ActionScript language elements
Example
The following examples show
true and false returns for both numeric and string
comparisons:
trace(3 < 10); // true
trace(10 < 3); // false
trace("Allen" < "Jack"); // true
trace("Jack" < "Allen"); //false
trace("11" < "3"); // true
trace("11" < 3); // false (numeric comparison)
trace("C" < "abc"); // true
trace("A" < "a"); // true
lt less than (strings) operator
expression1 lt expression2
Deprecated since Flash Player 5. This operator was deprecated in favor of the < (less than)
operator.
Compares
expression1 to expression2 and returns true if expression1 is less than
expression2, false otherwise.
Availability: ActionScript 1.0; Flash Lite 1.0
Operands
expression1 : Object - Numbers, strings, or variables.
expression2 : Object - Numbers, strings, or variables.
Returns
Boolean - The result of the comparison.
See also
< less than operator
<= less than or equal to operator
expression1 <= expression2
Compares two expressions and determines whether expression1 is less than or equal to
expression2; if it is, the operator returns true. If expression1 is greater than
expression2, the operator returns false. String expressions are evaluated using alphabetical
order; all capital letters come before lowercase letters.