Year 6 (ages 10–11, Grade 5 in the US) · Computing · Variables and games · Lesson 3
Winning, losing and selection
Selection in games: if...then and if...then...else, true/false conditions, comparison operators, win and lose rules, and common selection bugs.
Exam boards: this lesson matches the AQA and Pearson Edexcel GCSE computing courses. Check which course your school follows.

14-minute video lesson
Teaching, worked examples and 20 practice questions solved step by step.
Watch free for a monthWhat your child will learn
- Explain selection and conditions
- Use comparison operators
- Write win and lose rules
- Debug selection errors
The method
- Rule.
- If ... then.
- Inside forever.
- Test true and false.
Key words: selection, if then, condition, operator, forever, else.
Worked examples
Worked examples from the lesson, with every step.
Question 1
What is selection?
- Step 1: Choose
Answer: choosing what happens using a condition
Question 2
Name the block used for selection.
- Step 1: if...
Answer: if ... then
Question 3
A condition is either ___ or ___.
- Step 1: T / F
Answer: true or false