Gt Greater Than (Strings) Operator; Greater Than Or Equal To Operator - MACROMEDIA FLASHLITE2 ACTIONSCRIPT-LANGUAGE Reference

Actionscript language reference
Table of Contents

Advertisement

Example
In the following example, the greater than (>) operator is used to determine whether the value
of the text field
score_txt
if (score_txt.text>90) {
trace("Congratulations, you win!");
} else {
trace("sorry, try again");
}

gt greater than (strings) operator

expression1 gt expression2
Deprecated since Flash Player 5. This operator was deprecated in favor of the > (greater
than) operator.
Compares the string representation of
and returns
expression2
otherwise.
Availability: ActionScript 1.0; Flash Lite 1.0
Operands
expression1 :
Object
expression2 :
Object
Returns
- The Boolean result of the comparison.
Boolean
See also
> greater than operator
>= greater than or equal to operator
expression1 >= expression2
Compares two expressions and determines whether
(
) or
expression2
true
148
ActionScript language elements
is greater than 90:
expression1
if
true
expression1
- Numbers, strings, or variables.
- Numbers, strings, or variables.
is less than
expression1
with the string representation of
is greater than
expression2
is greater than or equal to
expression1
(
expression2
false
,
false
).

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash lite 2

Table of Contents