To use this website fully, you first need to accept the use of cookies. By agreeing to the use of cookies you consent to the use of functional cookies. For more information read this page.

Official ZPE/YASS documentationxor

xor (boolean a, boolean b) ⇒ boolean

Returns the exclusive-or (XOR) on two boolean values. i.e. (!($a && $b) && ($a || $b)).

First available: Version 1.4.3

Notes

XOR (⊕) is based on the logic that is provided by underlying logic gates made of transistors. As such, XOR is true if and only if one condition is true. The truth table for OR and XOR is shown below:

P Q P ∨ Q P ⊕ Q
True True True False
True False True True
False True True True
False False False False
Comments

There are no comments on this page.

New comment
Reply
Provide feedback on this page
Comments are sent via email to me.