Cicode Programming Reference > Working with Operators > Using Bit Operators

Using Bit Operators

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

Working with Operators

Using Cicode Files