Hands-On Science Lab

Sections › Coding › Logic and if-then rules

Logic and if-then rules

Computers make decisions with conditions: if this, then that. Children use the same logic every day.

What it looks like at each age

Ages 4–7

Sorting games with one rule.

Ages 8–11

Two-part rules with AND and OR, if-then squares in games.

Ages 12–15

Flowcharts and designing rule systems.

Three things to try this week

  1. Play 'If I clap, you jump' games.
  2. Draw a flowchart for choosing what to wear.
  3. Spot rules in daily life: 'If it rains, we take an umbrella.'

Activities for this topic

Words to know

Condition
The 'if' part of a rule: something that's checked to see if it's true.
Variable (in coding)
A named box that holds a value which can change.