Documentation

Added in v3.27

bittest

Syntax: %bittest(i,bitnum)
Related: %bitset

Test a bit within a numeric value and return true if it is set, false if it is not set. bitnum starts at 1.

Example

#SHOW %bittest(4,3)
1 (True)

#SHOW %bittest(0,3)

0 (False)

Add comment

Login or register to post comments