Skip to content

Introduction to Conditional LogicActivities & Teaching Strategies

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.

Year 1Computing4 activities25 min45 min

Learning Objectives

  1. 1Demonstrate how a floor robot navigates a path with an obstacle using an 'if...then' command.
  2. 2Identify the condition and the action in a given 'if...then' programming statement for a robot.
  3. 3Predict the robot's next movement based on a specific 'if...then' condition.
  4. 4Create a simple program for a floor robot that includes at least one 'if...then' decision.

Want a complete lesson plan with these objectives? Generate a Mission

45 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.

Prepare & details

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

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

Setup: Tables/desks arranged in 4-6 distinct stations around room

Materials: Station instruction cards, Different materials per station, Rotation timer

RememberUnderstandApplyAnalyzeSelf-ManagementRelationship Skills
30 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.

Prepare & details

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

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

Setup: Groups at tables with access to research materials

Materials: Problem scenario document, KWL chart or inquiry framework, Resource library, Solution presentation template

AnalyzeEvaluateCreateDecision-MakingSelf-ManagementRelationship Skills
35 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.

Prepare & details

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

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

Setup: Groups at tables with access to research materials

Materials: Problem scenario document, KWL chart or inquiry framework, Resource library, Solution presentation template

AnalyzeEvaluateCreateDecision-MakingSelf-ManagementRelationship Skills
25 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.

Prepare & details

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

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

Setup: Groups at tables with access to research materials

Materials: Problem scenario document, KWL chart or inquiry framework, Resource library, Solution presentation template

AnalyzeEvaluateCreateDecision-MakingSelf-ManagementRelationship Skills

Teaching This Topic

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.

What to Expect

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.

These activities are a starting point. A full mission is the experience.

  • Complete facilitation script with teacher dialogue
  • Printable student materials, ready for class
  • Differentiation strategies for every learner
Generate a Mission

Watch Out for These Misconceptions

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

What to Teach Instead

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.

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

What to Teach Instead

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.

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

What to Teach Instead

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.

Assessment Ideas

Quick Check

After Whole Class Prediction Challenge, show students a program on the board: 'IF sensor sees box, THEN turn left.' Ask them to point to the 'condition' and 'action.' Then, place a box in front of a real robot programmed with this code and ask them to predict what the robot will do before running it.

Discussion Prompt

During Station Rotation: Robot Decision Paths, ask each small group: '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.

Exit Ticket

After Individual: Personal Path Planner, give each student a card with a picture of a robot facing a wall. Ask them to write one 'if...then' sentence explaining what the robot should do. For example, 'If the robot sees a wall, then it should turn around.' Collect these to review for understanding.

Extensions & Scaffolding

  • Challenge students who finish early to program the robot to navigate a maze with multiple obstacles, requiring at least two 'if...then' rules.
  • For students who struggle, provide pre-written code snippets with missing conditions or actions for them to complete before testing.
  • Deeper exploration: Invite students to design a 'robot dance' using three or more conditional rules, then present their program and robot performance to the class.

Key Vocabulary

ConditionA specific situation or event that the robot checks for, like sensing an obstacle.
ActionWhat the robot does when the condition is met, such as turning or stopping.
If...then statementA programming instruction that tells the robot to perform an action only if a certain condition is true.
ObstacleSomething in the robot's path that it needs to detect, like a wall or a box.

Ready to teach Introduction to Conditional Logic?

Generate a full mission with everything you need

Generate a Mission