Skip to content

Lesson 7: Decide with if

Decide with if

  • if lets the robot choose. It looks with a sensor, then does one thing or the other.
  • else is what happens when the if test is false.

Words for this lesson

Word Meaning
if do this only when the test is true
else otherwise, do this
open no wall close in front
blocked a wall close in front

Log in or create account

IGCSE, A-Level & AP