Skip to content
Technologies · Year 6 · Logic and Loops: Advanced Programming · Term 1

Introduction to Conditional Logic

Students learn the basic structure of 'if-then' statements and apply them to simple programming scenarios.

ACARA Content DescriptionsAC9TDI6P02

About This Topic

Branching and decision making is a foundational concept in the Year 6 Technologies curriculum, focusing on how digital systems use logic to perform different actions based on specific conditions. At this level, students move beyond simple linear sequences to explore 'if-then-else' structures. This allows them to create more interactive and responsive programs, such as games that track scores or tools that provide different feedback based on user input. Understanding these logical paths is essential for developing computational thinking and preparing for more complex programming tasks.

In the Australian context, this topic also offers a chance to look at how decision-making logic is used in everyday systems, from smart irrigation in outback farming to traffic light management in busy cities. By mastering branching, students learn to anticipate various outcomes and handle errors systematically. This topic particularly benefits from hands-on, student-centered approaches where learners can physically act out the logic of a program before writing a single line of code.

Key Questions

  1. Explain how a program uses a condition to make a simple decision.
  2. Compare the outcome of a program with and without a conditional statement.
  3. Design a simple program that responds differently based on user input.

Learning Objectives

  • Explain how a program uses a condition to make a simple decision.
  • Compare the outcome of a program with and without a conditional statement.
  • Design a simple program that responds differently based on user input.
  • Identify the components of an 'if-then-else' statement in a given code snippet.

Before You Start

Sequencing Instructions

Why: Students need to understand how to create ordered steps for a program before they can introduce decision-making logic.

Basic Input and Output

Why: Understanding how to get information into a program (input) and display results (output) is necessary for creating interactive conditional programs.

Key Vocabulary

Conditional StatementA programming structure that executes different code blocks based on whether a specific condition is true or false.
If-Then StatementA basic conditional statement that performs an action only if a stated condition is met.
If-Then-Else StatementA conditional statement that performs one action if a condition is true, and a different action if the condition is false.
Boolean LogicA type of logic that deals with true and false values, used to evaluate conditions in programming.

Watch Out for These Misconceptions

Common MisconceptionStudents often believe the 'else' part of a statement is optional or only runs if a specific second condition is met.

What to Teach Instead

Explain that 'else' is a catch-all for every scenario where the 'if' condition is false. Using physical sorting games helps students see that everyone who doesn't fit the first criteria must follow the 'else' path.

Common MisconceptionLearners sometimes think that multiple 'if' statements are the same as an 'if-else' chain.

What to Teach Instead

Clarify that separate 'if' statements check every condition independently, while 'if-else' stops once a match is found. Peer-explaining the difference using a restaurant menu example can make this distinction clear.

Active Learning Ideas

See all activities

Real-World Connections

  • Traffic light systems use conditional logic to change lights based on sensor input or timers, ensuring safe vehicle and pedestrian flow in cities like Melbourne.
  • Video games employ 'if-then-else' statements to determine character actions, such as an enemy attacking if the player is within a certain range, or a score increasing if a target is hit.

Assessment Ideas

Exit Ticket

Provide students with a simple scenario, e.g., 'If the temperature is below 10 degrees Celsius, then wear a jacket, else wear a t-shirt.' Ask them to write one sentence explaining what happens if the temperature is 5 degrees and one sentence explaining what happens if the temperature is 20 degrees.

Quick Check

Present students with a short block of pseudocode or visual programming code that includes an 'if-then-else' statement. Ask them to identify the condition, the action if true, and the action if false. For example: 'IF score > 100 THEN display 'You win!' ELSE display 'Try again!'.

Discussion Prompt

Ask students to describe a situation where a program might need to make a decision. Prompt them to explain what the condition would be and what actions the program might take based on that condition. For instance, 'How could a weather app decide whether to show a sun or cloud icon?'

Frequently Asked Questions

What is the simplest way to explain branching to Year 6 students?
Think of branching like a fork in the road. A program reaches a point where it asks a question with a 'yes' or 'no' answer. Depending on the answer, it takes a different path. In coding, we call this 'if-then-else' logic. It is the basis for how computers make choices, like deciding if a password is correct or if a character in a game has run out of lives.
How does branching connect to the ACARA Technologies curriculum?
Under AC9TDI6P02, students are required to design and follow algorithms that involve branching and iteration. This topic builds the logical framework needed to meet these standards. It moves students from being passive users of technology to creators who understand the underlying 'rules' that govern digital behavior and automated systems.
Can we teach branching without using computers?
Yes, 'unplugged' activities are highly effective. You can use playground games, recipes, or choose-your-own-adventure stories to demonstrate logic. For example, a physical obstacle course where students must choose a path based on a coin flip or a specific attribute (like 'if you have laces, jump; else, crawl') perfectly models computational branching without needing a screen.
How can active learning help students understand branching and decision making?
Active learning allows students to 'be' the code. When students participate in simulations or role plays, they experience the logic flow physically. This makes abstract concepts like 'nested conditions' or 'boolean logic' tangible. By discussing and debating logic paths in small groups, students surface their own misunderstandings and learn to debug their thinking through peer feedback before they start formal coding.