powered by
For two arguments: result is 1 iff exactly one is 1. For n arguments: result is 1 iff an odd number are 1 (parity).
Xor(..., id = NULL)
A Xor expression.
Xor
Two or more boolean Variables or logic expressions.
Optional integer ID (internal use).
Note: R's ^ operator is used for power(), so Xor is functional syntax only.
^
power()
Not(), And(), Or(), implies(), iff()
Not()
And()
Or()
implies()
iff()
if (FALSE) { x <- Variable(boolean = TRUE) y <- Variable(boolean = TRUE) exclusive <- Xor(x, y) }
Run the code above in your browser using DataLab