Operators > < (less than)
< (less than)Syntax
expression1
<
expression2
Arguments
expression1,expression2
Numbers or strings.
Description
Operator (comparison); compares two expressions and determines whether expression1
is less than expression2
(true
), or whether expression1
is greater than or equal to expression2
(false
). String expressions are evaluated and compared based on the number of characters in the string.
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
returns for both numbers and strings:
3 < 10
or "Al" < "Jack"
return true
10 < 3
or "Jack" < "Al"
return false