Conditions (If Else)
👩🏫 Teacher’s Guide
Objective
Students will explain conditions (if/else) as decision-making in programs and predict outcomes of simple if/else rules.
Teaching Notes
- Use real-life choices: if it rains, take an umbrella; else, wear sunglasses.
- Explain that conditions check if something is true or false.
- Model with a simple game: if score ≥ 10, win; else, keep playing.
- Keep symbols minimal; focus on meaning and logic.
🧒 Student Worksheet
Concept and Helping Material
Conditions help programs make decisions. An if statement checks a rule. If the rule is true, the program does one thing. Else, it does something different.
Computer Vocabulary and Definition
- — A rule that can be true or false.
- — A command that checks a condition.
- — A command for what happens when the condition is false.
- — A condition that is correct.
- — A condition that is not correct.
Computer QA
- What is a condition?
- What does if do?
- What does else do?
- What does true mean?
- What does false mean?
- True or False: If/else helps programs decide.
- If it is raining, what might a program tell you to do?
- If you press the space key, what could happen in a game?
- What happens when an if condition is true?
- What happens when an if condition is false?
- Can conditions use booleans?
- Is ‘score is 10’ a condition?
- True or False: Else runs when the condition is true.
- Why are conditions useful?
- What is one example of a condition in a game?
- Can a program have more than one condition?
- What is a simple condition using a button?
- If the light is off, what could else do?
- True or False: Conditions check rules.
- What is one everyday if/else decision?
Computer Prtactices
- If/else cards: Match conditions to actions (if hungry → eat, else → drink water).
- Predict the output: If score ≥ 5 show ‘Great!’ else show ‘Keep trying!’
- Create 3 if/else rules for a simple pet game.
- Role-play: One student is the ‘if checker’ and chooses actions based on true/false.
Reflection
- What does if/else help a program do?
- Give one if/else example from real life.