Skip to content

Logic: AND, OR, NOT

A club that checks your age

  • A coding club takes members only from age 11 to 16. One test cannot say both ends.
  • AND is TRUE only when both tests are TRUE.
  • Write the variable on each side: Age >= 11 AND Age <= 16.

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