Skip to main content
. Author manuscript; available in PMC: 2017 Jul 26.
Published in final edited form as: J Exp Zool B Mol Dev Evol. 2015 Jan;324(1):1–12. doi: 10.1002/jez.b.22597

Table 2.

Logical operations between two Boolean values, A and B.

A B A AND B A OR B A XOR B
True True True True False
True False False True True
False True False True True
False False False False False

When A and B are both true the AND operation produce true, OR returns true if either A or B is true, and XOR returns true if either A or B, but not both, is true.