Skip to content

Logic: AND, OR, NOT

A club that checks both ends of the age

  • A club takes members only from 11 to 16. One test cannot say both ends.
  • AND is TRUE only when both tests are TRUE: Age >= 11 AND Age <= 16.
  • NOT flips a Boolean. The tasks use it on a flag, not on a number.

AND joins two tests: age 14 passes both, so the entry is accepted; age 10 fails the first

Handout

Log in or create account

IGCSE, A-Level & AP