gt (string greater than)

Availability

Flash Lite 1.0.

Usage

expression1 gt expression2

Operands

expression1, expression2 Numbers, strings, or variables.

Description

Operator (comparison); compares the string representation of expression1 to the string representation of expression2 and returns a true value if expression1 is greater than expression2; otherwise, it returns a false value. Strings are compared using alphabetical order; digits precede all letters, and all capital letters precede lowercase letters.

Example

The following examples show true and false results:

animals = "cats";
breeds = 7;

trace ("persons" gt "people");                    // output: 1(true)
trace ("cats" gt "cattle");                        // output: 0(false)
trace (animals gt "cats");                        // output: 0(false)
trace (animals gt "Cats");                        // output: 1(true)
trace (breeds gt "5");                            // output: 1(true)
trace (breeds gt 7);                            // output: 0(false)

See also

> (numeric greater than)