Or Logical Or Operator - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

The following example demonstrates how using a function call as
unexpected results. If the expression on the left of the operator evaluates to
returned without evaluating the expression on the right (the function
function fx1():Boolean {
trace("fx1 called");
return true;
}
function fx2():Boolean {
trace("fx2 called");
return true;
}
if (fx1() || fx2()) {
trace("IF statement entered");
}
/* The following is sent to the Output panel: /* The following is sent to
the log file: fx1 called IF statement entered */
See also
! logical NOT operator
,
operator
&& logical AND operator
operator

or logical OR operator

condition1 or condition2
Deprecated since Flash Player 5. This operator was deprecated in favor of the
operator.
OR)
Evaluates
condition1
is
.
true
Availability: ActionScript 1.0; Flash Lite 1.0
Operands
condition1 :
Boolean
condition2 :
Boolean
Returns
- The result of the logical operation.
Boolean
See also
|| logical OR operator
,
!= inequality operator
,
== equality operator
and
, and if either expression is
condition2
- An expression that evaluates to
- An expression that evaluates to
,
| bitwise OR operator
expression2
true
is not called).
fx2()
,
!== strict inequality
,
=== strict equality
, the whole expression
true
or
.
true
false
or
.
true
false
can lead to
, that result is
|| (logical
Operators
163

Advertisement

Table of Contents
loading

Table of Contents