Le Less Than Or Equal To (Strings) Operator - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

Availability: ActionScript 1.0; Flash Lite 1.0 - In Flash 4,
or later, the less than or equal to (
various data types. Flash 4 files that are brought into the Flash 5 or later authoring
environment undergo a conversion process to maintain data type integrity. The following
illustrates the conversion of a Flash 4 file containing a numeric quality comparison.
Flash 4 file:
x <= y
Converted Flash 5 or later file:
Operands
expression1 :
Object
expression2 :
Object
Returns
- The Boolean result of the comparison.
Boolean
Example
The following examples show
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
than or equal to
expression2
Availability: ActionScript 1.0; Flash Lite 1.0
) operator is a comparison operator capable of handling
<=
Number(x) <= Number(y)
- A number or string.
- A number or string.
and
true
false
to
and returns a value of
expression2
,
otherwise.
false
is a numeric operator. In Flash 5
<=
results for both numeric and string
true
if
is less
expression1
Operators
157

Advertisement

Table of Contents
loading

Table of Contents