Combining conditions with and, or, not
Blocks that combine or flip true/false conditions. And needs both to be true, or needs at least one to be true, and not reverses true to false and false to true.
Understanding Combining conditions with and, or, not in Years 5–6 Creating Digital Solutions
What it does: Not flips true to false and false to true, so this is true whenever the sprite is away from the edge. The and block makes the if block run only when both the answer is correct and the timer is above zero. The 'and' block needs BOTH conditions to be true. The space key is not pressed, so the whole block is false. You need both things to be true, so use 'and'. Using 'or' would let the player pass with only one. 10 is not less than 8 and 10 is not greater than 12. Neither side is true, so 'or' reports false.
Common mistakes: The sprite says it has both items, so the if block needs 'and'. 'or' would be true with only one item. It should be: if <key> and <map> then. The second if block should say to leave the umbrella when it is NOT raining. Without 'not' it runs when it is raining, so both messages play in the rain. It should be: if <not <raining>> then.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 51–60) and word search (Modules 41–74).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
and, or, notFill in the Blanks
Spot the Error
Student with a class code? Join your class →