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 = %X7F
x Xor= %X55
After run
variablevalue
x42

See also