BOR operator
Synopsis
This operator
performs a bitwise OR operation. You can also use the | symbol to
perform this operation.
Variations
Number BOR Number2
Performs a bitwise OR
operation.
Details |
Examples |
Details and examples
Parameters
Number
Specifies the first 32-bit integer.
Supported types: Numeric.
Number2
Specifies the second 32-bit integer.
Supported types: Numeric.
Returns
Examples
1. |
Each of the following examples return 3. Note that 1 = 0b01, 2 =
0b10, and 3 = 0b11.
2 BOR
1
2 | 1
|