Skip to content

bit_or

Computes the bit-wise OR of its arguments.

bit_or(lhs:number, rhs:number) -> number

The bit_or function computes the bit-wise OR of lhs and rhs. The operation is performed on each corresponding bit position of the two numbers.

The left-hand side operand.

The right-hand side operand.

from {x: bit_or(5, 3)}
{x: 7}

bit_and, bit_xor, bit_not, shift_left, shift_right