Operators > <= (less than or equal to)

<= (less than or equal to)

Syntax

expression1 <= expression2

Arguments

expression1,expression2 Number or strings.

Description

Operator (comparison); compares two expressions and determines whether expression1 is less than or equal to expression2 (true), or whether expression1 is greater than expression2 (false).

Player

Flash 4; Flash 5 or later. In Flash 5 <= is a comparison operator capable of handling various data types. In Flash 4 <= is an numeric operator. Flash 4 files brought into the Flash 5 authoring environment undergo a conversion process to maintain data type integrity. The first example below illustrates the conversion process.

Example

The following illustrates the conversion of a Flash 4 file containing a numeric quality comparison.

Flash 4 file:

x <= y

Converted Flash 5 file:

Number(x) <= Number(y)

The following examples illustrate true and false results for both numbers and strings:

5 <= 10 or "Al" <= "Jack" returns true

10<= 5 or "Jack" <= "Al" returns false