Home

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

If This, Then That: Mastering Conditionals in Code

[sow-ict-pion-04]

Section 1 of 425%

What Does a Bouncer Actually Do?

What Does a Bouncer Actually Do?

Imagine you are a bouncer at a theme-park ride. Your job is one decision repeated hundreds of times: 'Is this person tall enough?' If yes — they ride. If no — they don't. You don't re-read the rulebook every time; you just check one condition and act on the result. Every program you have ever used works the same way. Your phone's alarm fires only IF the time matches your setting. A game gives you a bonus ONLY IF your score passes a threshold. Without the ability to make decisions, a program can only follow a fixed script — no matter what the user does. Today you will look inside that decision-making engine. The key question to keep in mind: how does a computer choose which set of instructions to run?

💭 Think about this

Think of one decision you make every morning (e.g. 'If it is raining, I take an umbrella'). Write it as a plain-English IF sentence. How many possible outcomes does it have?

Watch this

What Most Schools Don't Teach

Code.org · 5:44

Video not playing? Search for a different one on YouTube (opens in a new tab).

Try YouTube →

Related videos

Kid-safe

Opens YouTube search in a new tab, scoped to a trusted channel.