Bit Xor

This command xors the bits of two integers together.


result = Bit Xor(valueA,valueB)


In TNT Basic, all integers are actually just composed of 32 individual 'bits', a bit can be either a '0' or a '1'.

This command takes two numbers, valueA and valueB, then xors them together to produce the result.

It is possible to set an individual bit using the function Bit Set.

Table of contents