03.05.2013 Views

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Example<br />

In the following example, the greater than (>) operator is used to determine whether the value<br />

of the text field score_txt is greater than 90:<br />

if (score_txt.text>90) {<br />

trace("Congratulations, you win!");<br />

} else {<br />

trace("sorry, try again");<br />

}<br />

gt greater than (strings) operator<br />

expression1 gt expression2<br />

Deprecated since Flash Player 5. This operator was deprecated in favor of the > (greater<br />

than) operator.<br />

Compares the string representation of expression1 with the string representation of<br />

expression2 <strong>and</strong> returns true if expression1 is greater than expression2, false<br />

otherwise.<br />

Oper<strong>and</strong>s<br />

expression1 : Object - Numbers, strings, or variables.<br />

expression2 : Object - Numbers, strings, or variables.<br />

Returns<br />

Boolean - The Boolean result of the comparison.<br />

See also<br />

> greater than operator<br />

>= greater than or equal to operator<br />

expression1 >= expression2<br />

Compares two expressions <strong>and</strong> determines whether expression1 is greater than or equal to<br />

expression2 (true) or expression1 is less than expression2 (false).<br />

Oper<strong>and</strong>s<br />

expression1 : Object - A string, integer, or floating-point number.<br />

expression2 : Object - A string, integer, or floating-point number.<br />

138 ActionScript language elements

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!