If This, Then That: Using Conditionals in Code

1 of 4

ICT · My World Quest — full scheme of work · explorer

If This, Then That: Using Conditionals in Code

3 more
1/4
For grown-ups

Companion summary

Preparing a short summary…

Decisions, Decisions!

Decisions, Decisions!

Every day you make decisions based on a condition. Think about this: if it is raining, you take an umbrella. If it is NOT raining, you leave the umbrella at home. Your brain checks a condition — 'Is it raining?' — and then chooses what to do. Computers do exactly the same thing! They check a condition and pick an action based on whether it is true or false.

💭 Think about this

Can you think of one 'if … then …' decision you made today? For example: 'If my alarm rang, then I got up.'