With a bit operator, you can compare the corresponding bits in two numeric expressions. (A bit is the smallest unit of data a computer can store.)
Operator |
Description |
BITAND |
AND |
BITOR |
OR |
BITXOR |
Exclusive OR |
For example
Command |
Tag3 = Tag1 BITAND Tag2; |
Command |
Tag3 = Tag1 BITAND 0xFF; |
Command |
Tag3 = Tag1 BITOR Tag2; |
Command |
Tag3 = Tag1 BITXOR Tag2; |
See Also