Bitwise OR (|)

The OR operator compares 2 bits. If one or the other bit is 1, the result is 1.

Bit 1

Bit 2

Bit 1 | Bit 2

0

0

0

0

1

1

1

0

1

1

1

1

Related reference
The AND Operator (&)
EXCLUSIVE OR (^)
NOT (~)