Operators
171
Returns
Boolean
- The Boolean result of the comparison.
Example
The following examples show
true
and
false
results for both numeric and string
comparisons:
trace(5 <= 10); // true
trace(2 <= 2); // 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
le less than or equal to (strings) operator
expression1
le
expression2
Deprecated
since Flash Player 5. This operator was deprecated in Flash 5 in favor of the
<=
(less than or equal to) operator.
Compares
expression1
to
expression2
and returns a value of
true
if
expression1
is less
than or equal to
expression2
,
false
otherwise.
Availability:
ActionScript 1.0; Flash Player 4
Operands
expression1 : Object
- Numbers, strings, or variables.
expression2 : Object
- Numbers, strings, or variables.
Returns
Boolean
- The result of the comparison.
See also
<= less than or equal to operator
Summary of Contents for FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
Page 1: ...ActionScript 2 0 Language Reference ...
Page 1352: ...1352 ActionScript classes ...