Name
BitTest -- test if a bit is set (V2.0)
Synopsis
bool = BitTest(x, b)
Function
Tests if bit number b is set in x and returns True if this is the case, False otherwise.

Inputs
x
source value
b
bit to test
Results
bool
True if the bit is set, else False
Example
Print(BitTest(Val("%10101111"), 4))
Returns False because bit number 4 is not set in %10101111.

Show TOC