gt (string >)
Top  Previous  Next


SWiSH Player Support
SWF4 or later - Supported Internally

Syntax
a gt b

Description
This is old version of greater than syntax. Although recognized this should be replaced with > syntax.

Similar to >, however it ensures that string comparison is always used, even if either value is a number.

Sample
a = "hi";
b = "there";
trace(a > b);   // For SWF4, returns 0 (false) as both a and b are 
converted to numeric and equate to equal (both 0).
trace(a ge b);   // returns 0 (false) as "hi" is before "there", which is the expected result.

See Also
>