Making Decisions: If This, Then That You make decisions all day long, without even thinking about it. If it is raining, take an umbrella. If it is sunny, wear sunglasses. If the food is hot, wait before eating. If it has cooled down, eat it. If the traffic light is red, stop. If it is green, go. Every one of those is an "if-then" decision. And computers make decisions the same way — all the time. What is a Decision? A decision is when you check a condition and choose what to do based on whether that condition is true or false. Condition: Is it raining? If true: Take an umbrella If false: Leave the umbrella at home That is all a decision is — a question with two possible answers (yes or no), and a different action for each answer. In programming, this idea is called an if statement , but you do not need to remember that name yet. Just remember the pattern: if this is true → do this. Otherwise → do that. The TV News Ticker Have you ever watched the news on television? At the bottom of the screen, there is often a scrolling line of text — this is called a news ticker or crawler . It shows headlines continuously while the main news plays above it. Now, sometimes something urgent happens — an earthquake, a big announcement, a match result. When that happens, the ticker changes to a bold red banner instead of the regular scrolling text. How does the television channel do that? The computer behind the screen follows a decision: If there is breaking news, then show the red banner Otherwise , show the regular scrolling ticker The computer is constantly watching for that condition: is there breaking news right now? Most of the time the answer is no, and the regular ticker scrolls on. When the answer becomes yes, the output changes. This is a decision — a simple check that changes what happens next. Decisions in Everyday Life School Morning If you finish your homework, then you can watch TV after school Otherwise , you go straight to study Vending Machine If the money you inserted is enough for the snack you selected, then the snack drops out Otherwise , the machine asks you to insert more money Automatic Street Light If it is dark outside, then turn on the street light Otherwise , turn it off The last example is especially interesting — this is a real computer decision happening in cities everywhere. A sensor checks the light level in the sky, and the computer decides whether the light should be on or off based on that reading. A Decision Can Have Many Options Sometimes there are more than two choices. Think about the traffic signal again. The computer does not just decide "on or off." It decides between three specific options: If it is time for red, then show red If it is time for yellow, then show yellow If it is time for green, then show green Each option is still an "if this condition is true, do this" check. There are just more of them stacked together. Two Things a Decision Needs Every decision in the real world — and in programming — needs exactly two things: 1. A condition — the question being checked Is it raining? Is it dark outside? Is there breaking news? Is the money enough? 2. A result — what to do based on the answer Take umbrella / leave umbrella. Turn light on / turn light off. Without a condition, there is nothing to check. Without a result, the decision has no effect. Why This Matters Sequences (from the last post) tell the computer what to do in order. Decisions tell the computer what to do depending on the situation . A programme without decisions would do the same thing every single time, regardless of what is happening. Decisions are what make programmes respond to the real world. In the next post, we look at the third big idea: what happens when you need to do the same thing many, many times. ✅ Summary A decision (or condition) checks whether something is true or false and does different things based on the answer. The TV news ticker shows a red banner if there is breaking news, and regular text otherwise . Automatic street lights turn on if it is dark. The vending machine gives snacks if you inserted enough money. Decisions let computers respond to different situations — instead of doing the exact same thing every time.