Loading concepts…

Making Decisions with If

Computing · Programming & Algorithms · ages 7–10

Using if … then … else so a program chooses what to do: if the cat touches the wall, turn around; if the answer is right, add a point; tracing which branch runs for a given input

At what age?

Usually at ages 7–10. The age is a guide: what decides whether a child is ready is the foundations below.

How do you know your child has learned it?

  • Write a program that uses 'if … then … else' to make a choice
  • Trace which branch runs for two different inputs
  • Describe an everyday rule as an if-then statement (if it is raining, take an umbrella)

A quick check

Could your child add a rule to their game like 'if the character touches the edge, bounce back' and explain when it happens?

What comes first?

What it leads to

Where to learn it

  • ScratchJr (App · No words needed · ages 5–7 · Free): Picture blocks that need no reading: young children sequence a character's actions and learn ordering and breaking problems down.
  • Hello Ruby (Book · English · ages 4–8): Picture books by a Finnish coder that teach computational thinking through story and unplugged play rather than a particular language.
  • Raspberry Pi Projects (Course · Chinese & English · ages 8–14 · Free): The Raspberry Pi Foundation's free project library (in Chinese too): build something that works, step by step, in Scratch, Python or HTML.
  • Hello World! Computer Programming for Kids and Other Beginners (3rd edition) (Book · Chinese · ages 10–14): A Python introduction written by a father and son, in conversation, for parent and child to read and type along together; the third edition is fully updated to Python 3 and adds a chapter on the internet.

Everything a child learns · Built on Marble's open skill taxonomy (ODbL 1.0), recurated with ideas from China's current national standards (2022 edition). concepts.txt · taxonomy.json · llms.txt