Symbols > &= (bitwise AND assignment) |  |

&= (bitwise AND assignment)

bitwise and assignment, and, assignment, &=

Availability

Flash Player 5.

Usage

    expression1 &= expression2

Parameters

None.

Returns

Nothing.

Description

Operator (bitwise compound assignment); assigns `expression1` the value of `expression1` `&` `expression2`. For example, the following two expressions are the same.

    x &= y
    x = x & y

Example

The following example assigns the value `9` to `x`.

    x = 15;
    y = 9;
    trace(x &= y);
    // returns 9

See also

`& (bitwise AND)`