EasyManua.ls Logo

MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE - Le Less than or Equal to (Strings) Operator

MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE
780 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Operators 157
Availability: ActionScript 1.0; Flash Lite 1.0 - In Flash 4, <= is a numeric operator. In Flash 5
or later, the less than or equal to (
<= ) operator is a comparison operator capable of handling
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: Number(x) <= Number(y)
Operands
expression1 : Object - A number or string.
expression2 : Object - A number or string.
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 Lite 1.0

Table of Contents

Related product manuals