Flash Lite 2.x and 3.0 ActionScript Language Reference

> greater than operator

expression1 > expression2

Compares two expressions and determines whether expression1 is greater than expression2; if it is, the operator returns true. If expression1 is less than or equal to expression2, the operator returns false. String expressions are evaluated using alphabetical order; all capital letters come before lowercase letters.

Operands

expression1 : Object - A number or string.

expression2 : Object - A number or string.

Returns

Boolean - The Boolean result of the comparison.

Example

In the following example, the greater than (>) operator is used to determine whether the value of the text field score_txt is greater than 90:

 if (score_txt.text>90) { 
 trace("Congratulations, you win!"); 
} else { 
 trace("sorry, try again"); 
}