03.05.2013 Views

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

expression1 : Object - A number or string.<br />

expression2 : Object - A number or string.<br />

Returns<br />

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

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 than)<br />

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 />

Availability: <strong>ActionScript</strong> 1.0; Flash Player 4<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 />

166 <strong>ActionScript</strong> language elements

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

Saved successfully!

Ooh no, something went wrong!