Operators > ^= (bitwise XOR assignment)
^= (bitwise XOR assignment)Syntax
expression1
^=
expression2
Arguments
expression1,expression2
Integers and variables.
Description
Operator (compound assignment); assigns expression1
the value of expression1
^
expression2
.
Player
Flash 5 or later.
Example
The following is an example of a ^= operation:
// 15 decimal = 1111 binary
x = 15;
// 9 decimal = 1001 binary
x ^= y;
returns
x ^ y
(0110 binary)
The following illustrates using the ^=
operator with variables and numbers:
x ^= y
is the same asx = x ^ y
Ifx = 15
andy = 9
then15 ^= 9
returns6
See also