or

Bitwise OR.

Returns a 1 in each bit position for which the corresponding bits of either or both arguments are 1s.

Syntax

or[x, y]

Parameters

x Number on which the function performs bitwise operation.
y Number on which the function performs bitwise operation.
Return Value Bitwise OR value.

Examples

#<result> = or[1, 2]

result: 3

See also

not, and, xor, nand, nor, xnor