Ge Greater Than Or Equal To (Strings) Operator - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

Availability: ActionScript 1.0; Flash Player 4 - In Flash 4,
or later, the greater than or equal to (
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:
Converted Flash 5 or later file:
x >= y
Operands
expression1 : Object
expression2 : Object
Returns
- The Boolean result of the comparison.
Boolean
Example
In the following example, the greater than or equal to (
whether the current hour is greater than or equal to 12:
if (new Date().getHours() >= 12) {
trace("good afternoon");
} else {
trace("good morning");
}

ge greater than or equal to (strings) operator

expression1 ge expression2
Deprecated since Flash Player 5. This operator was deprecated in favor of the
or equal to) operator.
Compares the string representation of
and returns
expression2
otherwise.
false
Availability: ActionScript 1.0; Flash Player 4
Operands
expression1 : Object
expression2 : Object
) operator is a comparison operator capable of
>=
Number(x) >= Number(y)
- A string, integer, or floating-point number.
- A string, integer, or floating-point number.
expression1
if
true
expression1
- Numbers, strings, or variables.
- Numbers, strings, or variables.
is a numeric operator. In Flash 5
>
) operator is used to determine
>=
with the string representation of
is greater than or equal to
(greater than
>=
,
expression2
Operators
163

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF