Skip to content
Technologies · Year 7

Active learning ideas

Conditional Statements: If/Else

Active learning helps students grasp conditional statements by letting them physically experience how decisions branch and repeat. When students simulate logic with their bodies or trace mazes on paper, the abstract concept of 'if-else' becomes concrete and memorable.

ACARA Content DescriptionsAC9TDI8P03
25–45 minPairs → Whole Class3 activities

Activity 01

Formal Debate30 min · Whole Class

Formal Debate: The Best Loop

Divide the class into two sides: 'Team For-Loop' and 'Team While-Loop'. Give them a series of tasks (e.g., 'Draw 10 squares' vs 'Keep playing until the user quits') and have them argue which structure is more efficient for each scenario.

Design a program that makes decisions based on user input.

Facilitation TipDuring the Structured Debate, assign clear roles (e.g., loop advocate, if-else advocate) and provide sentence stems to keep arguments focused on efficiency and clarity.

What to look forProvide students with a simple scenario, such as a basic temperature checker. Ask them to write pseudocode for a program that prints 'It's cold' if the temperature is below 10 degrees Celsius, and 'It's warm' otherwise. Specify they must use an 'if-else' structure.

AnalyzeEvaluateCreateSelf-ManagementDecision-Making
Generate Complete Lesson

Activity 02

Simulation Game45 min · Pairs

Simulation Game: Logic Maze

Create a physical maze on the classroom floor. One student is the 'runner' and another is the 'programmer' who gives instructions using only conditionals and loops (e.g., 'If there is a wall in front, turn left; Else, move forward').

Differentiate between single 'if' statements and 'if-else' structures.

Facilitation TipSet a 5-minute timer for the Logic Maze so students feel the pressure of repeated checks and see how a termination condition stops the loop.

What to look forDisplay a short code snippet with 'if', 'else if', and 'else' statements. Ask students to predict the output for two different input values. For example, 'What will this code print if the user enters 7?' and 'What will it print if the user enters 25?'

ApplyAnalyzeEvaluateCreateSocial AwarenessDecision-Making
Generate Complete Lesson

Activity 03

Think-Pair-Share25 min · Pairs

Think-Pair-Share: Predict the Output

Provide students with a short snippet of code containing a nested loop or a complex conditional. Students work individually to trace the logic and predict the output, then compare their 'trace table' with a partner before checking the result on a computer.

Predict the execution path of a program with multiple conditional branches.

Facilitation TipAfter Think-Pair-Share, ask two pairs to present their predicted outputs side by side to highlight where different assumptions lead to different outcomes.

What to look forPose the question: 'When would you choose to use a series of separate 'if' statements instead of an 'if-else if-else' chain? Provide a brief example scenario to illustrate your point.'

UnderstandApplyAnalyzeSelf-AwarenessRelationship Skills
Generate Complete Lesson

A few notes on teaching this unit

Teach conditionals by having students act out scenarios first, then translate their physical actions into pseudocode. Avoid introducing compound conditions too quickly; start with simple binary choices. Research shows that kinesthetic tasks followed by immediate code mapping builds stronger mental models than abstract examples alone.

Students will confidently distinguish between single decisions (if-else) and repeated checks (loops) and write correct pseudocode for simple conditions. They should explain why a loop stops and when an else clause runs.


Watch Out for These Misconceptions

  • During the Simulation: Logic Maze, watch for students who assume the maze runner keeps moving without checking the exit condition.

    Pause the activity and ask students to mark every spot where the runner checks 'Is this the exit?' to reinforce that loops require a termination condition.

  • During the Simulation: Logic Maze, watch for students who conflate a single decision point with a loop.

    Have students count how many times they check the same condition in a loop versus once in an if-else, then ask them to physically move through both scenarios.


Methods used in this brief