BTst Function
Returns the status of 1 bit in a number.
Syntax
BTst (number, bitNum)
Parameters
- number
- Specify the number for the bit test with an expression or numeric value.
- bitNum
- Specify the bit (integer from 0 to 31) to be tested.
Return Values
Returns the bit test results (integer 1 or 0) of the specified numeric value.
See Also
BClr, BClr64, BSet, BSet64, BTst64
BTst Function Example
If BTst(flags, 1) Then
Print "Bit 1 is set"
EndIf