Exclusive disjunction: xor

Syntax

op1 xor op2

Input parameters

op1

the first operand

op2

the second operand

Examples of valid syntaxes

DS_1 xor DS_2

Semantics for scalar operations

The xor operator returns true if only one of the operand is true (but not both), false otherwise. The two operands must be of boolean type. For example: | **false** xor **false** gives **false** | **false** xor **true** gives **true** | **false** xor **null** gives **null** | **true** xor **false** gives **true** | **true** xor **true** gives **false** | **true** xor **null** gives **null** | **null** xor **null** gives **null**

Input parameters type

op1, op2

dataset {measure<boolean> _ }
| component<boolean>
| boolean

Result type

result

dataset {measure<boolean> _ }
| component<boolean>
| boolean

Additional Constraints

None.

Behaviour

The operator has the typical behaviour of the “Behaviour of Boolean operators” (see the section “Typical behaviours of the ML Operators”).