mBot: Selection in Practice (Grade 5-6)


In this lesson, students will apply the conditionals to the sorting process. The lesson will begin with a magic owl sorting the three Houses (Gryffindor, Slytherin, and Ravenclaw). Students will be invited to create the Sorting Hat in mBlock to explore the conditionals. This activity uses the PRIMM approach. First, students will predict the function of the demo program and then run it to see what actually happens. Students need to investigate how the demo programs work and modify them to add some new effects. Building on this hand-on experience, students are encouraged to make their own projects to demonstrate their understanding of this lesson.


  • Explain the meaning and use of conditionals associated with the relevant real-life examples.
  • Explain the meaning of different Boolean blocks in the context of conditionals.
  • Develop conditional algorithms to demonstrate their understanding of control structures.

Curriculum Connections Summary

  • Ontario - Mathematics - Algebra (Coding) & Science
  • Quebec - Science
  • New Brunswick - Science
  • Nova Scotia - Science & ICT
  • Alberta - Science & ICT
  • British Columbia - Science & ADST
  • Manitoba - Science
  • Prince Edward Island - Science
  • Saskatchewan - Science
  • Newfoundland & Labrador - Science
  • Yukon Territories - Follow's B.C.'s Curriculum
  • Northwest Territories - Follows Alberta's Curriculum
  • Nunavut - Follows Alberta's Curriculum

Find Out More


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