你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

binary_xor()

Applies to: ✅ Microsoft FabricAzure Data ExplorerAzure MonitorMicrosoft Sentinel

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