These tables show the values of and, or, and not. The two operands of and and or, and the single operand of not, are Boolean variables or expressions.
x | y | x and y |
---|---|---|
True | True | True |
True | False | False |
False | True | False |
False | False | False |
x | y | x or y |
---|---|---|
True | True | True |
True | False | True |
False | True | True |
False | False | False |
x | not x |
---|---|
True | False |
False | True |
|
Last modified: Version of January 21, 2018 at 9:54PM Winter Quarter 2018 You can get a PDF version of this |