binary_xor()

Returns a result of the bitwise xor operation of the two values.

Syntax

binary_xor(value1,value2)

Learn more about syntax conventions.

Parameters

Name Type Required Description
value1 int ✔️ The left-side value of the XOR operation.
value2 int ✔️ The right-side value of the XOR operation.

Returns

Returns logical XOR operation on a pair of numbers: value1 ^ value2.

Examples

binary_xor(1,1)

Output

Result
0
binary_xor(1,2)

Output

Result
3