mBot E3 - Conditionals: mBot Patrol!


Concepts: Students are introduced to conditions in programming including definitions, examples, how to create one using operators, and conditional loops in mBlock.
Activity: Students create an "mBot Patrol" program that has their mBot alternate between scanning and patrolling on a timed loop sequence. Students practice using operators to create a condition.


1. To introduce students to the concept and utility of programming with conditions.

2. For students to understand how to create condition using operators in mBlock

3. For students to practice design thinking while incorporating previously-learned concepts with a new concept: conditions

Curriculum Connections Summary

  • Ontario - Mathematics - Algebra (Coding)
  • British Columbia - ADST
  • Alberta - ICT
  • Nova Scotia - ICT

Find Out More


mbot is the best of both worlds, transitioning students from Scratch Blocks to Text Code