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

Create successful ePaper yourself

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

}<br />

function fx2():Boolean {<br />

trace("fx2 called");<br />

return true;<br />

}<br />

if (fx1() || fx2()) {<br />

trace("IF statement entered");<br />

}<br />

The following is sent to the Output panel: fx1 called IF statement entered<br />

See also<br />

! logical NOT operator, != inequality operator, !== strict inequality<br />

operator, && logical AND operator, == equality operator, === strict equality<br />

operator<br />

or logical OR operator<br />

condition1 or condition2<br />

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

OR) operator.<br />

Evaluates condition1 <strong>and</strong> condition2, <strong>and</strong> if either expression is true, the whole expression<br />

is true.<br />

Availability: <strong>ActionScript</strong> 1.0; Flash Player 4<br />

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

condition1 : Boolean - An expression that evaluates to true or false.<br />

condition2 : Boolean - An expression that evaluates to true or false.<br />

Returns<br />

Boolean - The result of the logical operation.<br />

See also<br />

|| logical OR operator, | bitwise OR operator<br />

Operators 181

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

Saved successfully!

Ooh no, something went wrong!