BitAND

BitAND(<value1>, <value2> [, <valueN>]])

The function returns the result of a bitwise «AND» for the passed values.

Parameters

value1First value.
value2Second value.
valueNThird and other values.

Related

BitNOT, BitOR, BitShift, BitXOR

Remarks

Bitwise operations are performed as 32-bit integers.

Examples

MsgBox(BitAND(17, 1))      # --> 1
MsgBox(BitAND(16, 1))      # --> 0
MsgBox(BitAND(28, 12, 8))  # --> 8 
MsgBox(BitAND(2, 3, 6))    # --> 2