📚 📁⬆

Conditions (If Else)

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

1. What is a condition?

2. What does if do?

3. What does else do?

4. What does true mean?

5. What does false mean?

6. True or False: If/else helps programs decide.

7. If it is raining, what might a program tell you to do?

8. If you press the space key, what could happen in a game?

9. What happens when an if condition is true?

10. What happens when an if condition is false?

11. Can conditions use booleans?

12. Is ‘score is 10’ a condition?

13. True or False: Else runs when the condition is true.

14. Why are conditions useful?

15. What is one example of a condition in a game?

16. Can a program have more than one condition?

17. What is a simple condition using a button?

18. If the light is off, what could else do?

19. True or False: Conditions check rules.

20. 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.
Computer Science