See also
[] (array access)
| (bitwise OR)
Availability
Flash Player 5.
Usage
expression1 | expression2
Parameters
expression1,expression2
Returns
None.
Description
Operator (bitwise); converts
returns a 1 in each bit position where the corresponding bits of either
are 1.
expression2
Example
The following is an example of a bitwise OR operation.
// 15 decimal = 1111 binary
x = 15;
// 9 decimal = 1001 binary
y = 9;
trace(x | y);
// 1111 | 0011 = 1111
// returns 15 decimal (= 1111 binary)
|| (logical OR)
Availability
Flash Player 4.
Usage
expression1 || expression2
Parameters
expression1,expression2
Returns
A Boolean value.
,
,
Object class
new
A number.
expression1
A Boolean value or an expression that converts to a Boolean value.
and
to 32-bit unsigned integers, and
expression2
or
expression1
|| (logical OR)
249
Need help?
Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?
Questions and answers