Symbols > | (bitwise OR) |  |

| (bitwise OR)

bitwise or, |

Availability

Flash Player 5.

Usage

    expression1 | expression2

Parameters

`expression1,expression2` A number.

Returns

None.

Description

Operator (bitwise); converts `expression1` and `expression2` to 32-bit unsigned integers, and returns a 1 in each bit position where the corresponding bits of either `expression1` or `expression2` are 1.

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)