Computers make choices using “if” rules: if something is true, then do this. Year 1 coders follow simple if–then rules from everyday life and see how robots use them to decide what to do.
What your child will learn
- Follow simple if–then rules
- Know that the action only happens when the condition is true
- Begin to use if–then–else to choose between two actions
If this, then that
We use if–then rules all the time: if it is raining, then take an umbrella. A computer checks the condition — is it raining? — and only runs the action if the answer is yes. “Else” says what to do when the answer is no.
Example questions
Here are a few questions like the ones in the first quest. Can you solve them?
1. Which word starts a rule that makes a choice?
- Run
- The
- If
- And
Show answer
Answer: If. “If” starts a condition.
2. If it is dark, you can…
- put on sunglasses
- turn off the lamp
- open a book
- turn on a light
Show answer
Answer: turn on a light. When it is dark, we switch on a light.
3. Rule: if you are cold, put on a jumper. You are warm. What do you do?
- Put on two jumpers
- Open the freezer
- Nothing — you don’t need a jumper
- Put on a jumper
Show answer
Answer: Nothing — you don’t need a jumper. You aren’t cold, so the rule doesn’t run.
4. Stop or go?
- 🔴 red light
- ✋ hand sign
- 🟢 green light
- 🚶 walking person sign
Baskets: Stop · Go
Show answer
Answer: Stop: ✋ hand sign, 🔴 red light · Go: 🚶 walking person sign, 🟢 green light. IF the light is red THEN stop. IF it is green THEN go.
Tips for grown-ups
- Play “Simon says” — it is an if–then game!
- Make up if–then rules for the day: if it is sunny, we go to the park.