Bit Test

Tests if a bit in a number is set


result = Bit Test (value,bit)


This command will return true if the bit at index bit in value is 1, and false if the bit is 0.

The bit indexes are numbered 0 through to 31, where 0 is the least significant bit, and 31 is the most significant bit.

You can set an individual bit using Bit Set.

Table of contents