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 ) |
$iBit | Bit to test such as 2 or 64 |
$nNumber | Number such as a byte |
boolean value | True = Bit is set 1, False = Not 0 |
If _BitTest(4,20) ; True: 2 bits set 4 and 16