bit.logicalXOr

Syntax bit.logicalXOr (bits1, bits2)

Params bits1 is a 32-bit number.

bits2 is a 32-bit number.

Action Performs the logical XOR of the two values

Returns The logical XOR of bits1 and bits2

Examples bit.logicalXOr (10, 7)

   » 13

string.hex (bit.logicalXOr (0x1FFFF, 0x22000))

   » "0x0003DFFF"

See Also bit.logicalOr

bit.logicalAnd

Discuss