Step by step: algorithms and “if”
About this lesson

An algorithm is an exact order of steps for a task. A sandwich: 1) take bread, 2) spread butter, 3) add cheese, 4) cover with a second slice. Break the order and it fails. Sometimes a step depends on a condition: “If it is raining, then take an umbrella.”
What the book shows
In computer science the child first learns to think through unplugged games: recognising information, ordering steps and learning safety rules.
Textbook link:
This is not the textbook’s text but a short description of the topic. Check the exact page in your own textbook.
The lesson step by step
- 1
Warm-up5 min
Mixed-up cards.
- 2
New topic10 min
Algorithms and conditions.
- 3
Practice10 min
Order the cards.
- 4
Game10 min
“Robot teacher” game.
- 5
Wrap-up5 min
Morning algorithm.
Let’s understand
For the student Simple language

- 🍞 Take a slice of bread.
- 🧈 Spread butter.
- 🧀 Add cheese.
- 🍞 Cover with a second slice.
For the parent
How to help
- Make a sandwich together: your child gives the steps and you follow them exactly like a robot.
- Make a morning “if… then…” rule: “If it is cold, then wear a hat.”
For the teacher
Lesson goals
- Build an algorithm for an everyday task, check the order of steps and use an “if… then…” condition.
How to teach it
- Unplugged games, cards, role play, discussion
Differentiation
- Weaker pupils: 2–3 steps; stronger pupils build their own algorithm
Questions for the class
- What is an algorithm and what is “if… then…” for?
How to check
The pupil writes a 4–5 step algorithm with 1 condition.
Scientific Scientific language
Precision
A computer or robot does only the step it is told. “Make a sandwich” is not enough; each step must be named.
Conditions
“If… then…” gives a choice: when the condition is true, one step happens; otherwise another.
Self-study
Step by step
- I know the goal.
- I write the steps in order.
- Is there a condition? I add “if… then…”.
- I check: did it work?
Going deeper
Scientific language: for older students, parents and teachers.
A traffic light works by an algorithm too: “If red, stop; if green, go.”
Play and check
Which step comes first and which comes later?
How to write it down
- Write a 4-step algorithm for “making tea” or “planting a flower”.
- Add one “if… then…” condition.
How the classwork looks in the notebook
Sample: the date and heading follow this country’s notebook rules.
Watch out: common mistakes
Where it helps in life
- Loops: repeated steps
- Controlling a robot
At home
Core
- Write a 5-step algorithm “getting ready for school”.
Extra ⭐
- Add 2 “if… then…” conditions.
How to do it
- Do the task with a grown-up.
- Explain in words what you noticed.
Answers for parents
For example: 1) get up, 2) wash, 3) dress, 4) eat breakfast, 5) take your bag. If it rains, then take an umbrella. If there is PE, then take your kit.
Step-by-step homework solution — Show the solution (try it yourself first)
Find the mistake
- “Add cheese → take bread” is the wrong order: bread first, then cheese.
How the homework looks in the notebook
Sample: the date and heading follow this country’s notebook rules.