Bit And
This command ands the bits of two integers together. Syntax
result = Bit And(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 ands them together to produce the result. It is possible to set an individual bit using the function Bit Set.
Table of contents