_BitTest

Tests if a bit in a number e.g. byte is set, short for BitAnd( Bit, Number) > 0

#include "Logics and Math.au3"
_BitTest( $nValue, $nMinValue, $nMaxValue )

parameters

$iBit Bit to test such as 2 or 64
$nNumber Number such as a byte

return value

boolean value True = Bit is set 1, False = Not 0

examples

If _BitTest(4,20) ; True: 2 bits set 4 and 16