Bit Xor

This command xors the bits of two integers together.

Syntax

result = Bit Xor(valueA,valueB)

Description

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