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.

On an age line, the accepted band runs from 11 to 16 inclusive; age 14 gives TRUE AND TRUE, age 10 gives FALSE AND TRUE

Handout

Log in or create account

IGCSE, A-Level & AP