Xor= Operator

Does logical exclusion on the value of a variable and the value of an expression, then changes the variable to the result.

Syntax

variable Xor= expression

Parts

variable
A numeric variable
expression
A numeric expression

Instructions

The two statements that follow operate the same.

variable Xor= expression
variable = variable Xor expression

Examples

x = &H7F
x Xor= &H55
After execution
variablevalue
x42

See also