Purpose: Performs a bitwise OR of two integer expressions.
Syntax: result = x Bor y
Guidelines: The Bor operator performs a bitwise OR operation on the two numeric expressions. The expressions are converted to integers (32 bits) before the BOR operation takes place.
For each of the 32 bits in the result, the bit will be set to 1 if the corresponding bit in either of the arguments is 1.
Example:
|
x = 45 '0010 1101 binary |
|
y = 99 '0110 0011 binary |
|
|
|
print x Bor y 'prints: 111 (0110 1111) |