Skip to content
Computing · Year 1

Active learning ideas

Introduction to Conditional Logic

Active learning helps young students grasp conditional logic because it links abstract 'if...then' statements to concrete, observable robot actions. When children physically place obstacles and watch the robot react, they connect cause and effect in a way that static images or verbal explanations cannot achieve.

National Curriculum Attainment TargetsKS1: Computing - ProgrammingKS1: Computing - Logical Reasoning
25–45 minPairs → Whole Class4 activities

Activity 01

Stations Rotation45 min · Pairs

Stations Rotation: Robot Decision Paths

Set up three stations with mats marked for paths and obstacles. At each, pairs program their robot: if no obstacle, go straight; if obstacle, turn right. Rotate every 10 minutes and compare paths on a class chart. End with sharing one successful program.

What does the robot do when it senses something in its way?

Facilitation TipDuring Station Rotation: Robot Decision Paths, circulate with a checklist to note which students quickly grasp the link between sensor triggers and program changes.

What to look forShow students a simple program on a tablet or board: 'IF sensor sees box, THEN turn left'. Ask students to point to the 'condition' and the 'action'. Then, place a box in front of a real robot programmed with this code and ask them to predict what it will do.

RememberUnderstandApplyAnalyzeSelf-ManagementRelationship Skills
Generate Complete Lesson

Activity 02

Mystery Object30 min · Whole Class

Whole Class Prediction Challenge

Display a robot path on the floor with hidden obstacles. Students predict and vote on robot actions before running the program. Discuss matches between predictions and outcomes, then adjust code as a group.

Can you make the robot take a different path when it reaches a wall?

Facilitation TipFor Whole Class Prediction Challenge, pause after each scenario to ask a student volunteer to explain their prediction before the robot runs, reinforcing verbal reasoning.

What to look forAsk students: 'Imagine you are programming a robot to deliver a package. What is one 'if...then' rule you would give it to make sure it doesn't bump into anything?' Encourage them to name both the condition and the action.

UnderstandAnalyzeEvaluateSelf-ManagementSocial Awareness
Generate Complete Lesson

Activity 03

Mystery Object35 min · Small Groups

Small Groups: Debug Relay

Groups create a conditional program with an intentional error. Pass the robot to the next group to test and fix. Record changes on mini-whiteboards and celebrate the final working path.

What do you think the robot will do next if we put a box in front of it?

Facilitation TipIn Small Groups: Debug Relay, provide only one debugging hint per group to encourage peer discussion and problem-solving without giving away answers.

What to look forGive each student a card with a picture of a robot facing a wall. Ask them to write one 'if...then' sentence that explains what the robot should do. For example, 'If the robot sees a wall, then it should turn around.'

UnderstandAnalyzeEvaluateSelf-ManagementSocial Awareness
Generate Complete Lesson

Activity 04

Mystery Object25 min · Individual

Individual: Personal Path Planner

Each child draws a path with two conditions, then programs their robot to follow it. Test individually, note what worked, and share one tip with a partner.

What does the robot do when it senses something in its way?

Facilitation TipDuring Individual: Personal Path Planner, remind students to label each step in their plan so peers can follow their logic during sharing.

What to look forShow students a simple program on a tablet or board: 'IF sensor sees box, THEN turn left'. Ask students to point to the 'condition' and the 'action'. Then, place a box in front of a real robot programmed with this code and ask them to predict what it will do.

UnderstandAnalyzeEvaluateSelf-ManagementSocial Awareness
Generate Complete Lesson

A few notes on teaching this unit

Teach conditional logic by starting with clear, relatable examples, such as 'If it rains, then take an umbrella.' Then, transition to hands-on robot activities where conditions are sensor inputs and actions are movement commands. Avoid overwhelming students with too many conditions at once. Research suggests young learners benefit from repeated cycles of prediction, observation, and reflection to solidify understanding.

Successful learning looks like students predicting robot movements accurately, explaining why the robot turns or continues straight, and revising programs based on observed outcomes. By the end of the unit, children should confidently identify conditions and actions in programs and debug simple logic errors.


Watch Out for These Misconceptions

  • During Station Rotation: Robot Decision Paths, watch for students who assume the robot will always follow the same path regardless of obstacles.

    Use the station materials to place obstacles and ask students to trace the robot's path on paper. Have them compare predictions with actual movements and discuss why the path changed, reinforcing that conditions alter outcomes.

  • During Whole Class Prediction Challenge, listen for students who believe the robot stops completely when an obstacle is present.

    Ask the class to vote on what the robot will do, then run the program. Afterward, highlight the 'else' clause in the program and ask students to identify the default action the robot took.

  • During Small Groups: Debug Relay, notice when students ignore sensor inputs or treat conditions as irrelevant.

    Ask each group to physically test their program with and without obstacles, then compare results. Encourage them to adjust the mat or robot position to see how sensors detect changes, linking code to hardware behavior.


Methods used in this brief