Feedback

  • Contents
 

The AND Operator

The logical operator AND has the following truth table, where A and B are constituent expressions of the larger boolean expression A AND B:

A

B

A AND B

True

True

True

True

False

False

False

True

False

False

False

False

From the truth table, you can see that an expression using AND is true if and only if all of its constituent expressions are true. Here is another truth table:

A

B

C

A AND B AND C

True

True

True

True

True

True

False

False

True

False

True

False

False

True

True

False

True

False

False

False

False

False

True

False

False

True

False

False

False

False

False

False

No matter how many constituents a boolean expression with AND has, the expression is true if and only if all of its constituents are true. If one or more constituents are false, then the whole expression is false.