Condition
A question about the situation that can only be answered true or false (yes or no), like 'Is it raining?' or 'Is the score above 10?'. It helps an algorithm decide what to do.
Understanding Condition in Years 5–6 Creating Digital Solutions
What it does: The question can only be answered yes (true) or no (false), so it works as a condition. If the score is 12 the answer is true. If the score is 8 the answer is false. There is no other answer. 'Is the score above 10?' can only be answered yes or no. 'What is your score?' needs a number as the answer. 7 is not above 10, so the answer is no. That means the condition is false. If it is sunny, it is not raining. So the condition is false. 'Pick a number' is an instruction, not a question with a yes or no answer. 'Is the door open?' is a condition.
Common mistakes: A condition must be a question that is true or false. score + target gives a number, not true or false. It should compare them, like score > target. The answer to 'Is it raining?' can only be TRUE or FALSE, so it can't be checked against 7. The condition should be raining = TRUE.
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 11–20) and word search (Modules 1–20).
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
conditionFill in the Blanks
Spot the Error
Student with a class code? Join your class →