XOR - Boolean Algebra
Combines the two parameters with the Boolean exclusive or (XOR) operation.
Input parameters
Name | Type | Optional | Description |
---|---|---|---|
lhs |
Bool | False | |
rhs |
Bool | False |
Output
Bool: True if and only if one of the parameters is true.
Usage
XOR(<lhs>, <rhs>)
Examples
Example 1
Query
LOAD tmp
AS ('': XOR(true, false))
Result
true
Example 2
Query
LOAD tmp
AS ('': XOR(true, true))
Result
false