Skip to content
Legacy docs for Tenzir v5.x. For the latest Tenzir v6 series, visit docs.tenzir.com. Migrating from v5? Read the Tenzir v6 migration guide.

Computes the bit-wise XOR of its arguments.

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

The bit_xor function computes the bit-wise XOR (exclusive 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_xor(5, 3)}
{x: 6}

Last updated: