Performs a bitwise OR.

Syntax

BITOR(<expN1>, <expN2>)

<expN1>
<expN2>

Two 32-bit integers

Description

BITOR( ) compares bits in the numeric value <expN1> with corresponding bits in the numeric value <expN2>. When either or both bits in the same position are on (set to 1), the corresponding bit in the returned value is on. When neither element is on, the bit is off (set to 0).

OR

0

1

0

0

1

1

1

1

Use BITOR( ) to force individual bits to one. Create a bit mask: a 32-bit integer with ones in the bits you want to force to one and zeroes in the bits you want to leave alone. Use this bit mask as either one of the parameters to BITOR( ), and the other parameter as the number that is modified.