
Menu
Historical Overview
Definitions
Different names
Operators
Precedence rules
Truth Tables
Examples of Boolean Expressions
Purpose
Usage examples
Quiz
|
Truth tables
We will cover here only the three most widely used operands.
The truth tables for AND
expression |
result |
true and true |
true |
true and false |
false |
false and true |
false |
false and false |
false |
We can observe that if any of the operands evolves to false whole expression
will evolve to false.
AND operator is denoted by &&
Truth tables for NOT
Truth tables for AND
Truth tables for OR
|