Getting Started Guide
CLASS 4
12
Coding Activities
Take a look at the scratch code below. The “waiting” block pauses the program until the left sensor is pressed.
Once the sensor is pressed, the program will continuously run and move over to the “if~ or” block..
The “Waiting” block is a hard concept to understand. Think of it as a door that blocks the activation of the program.
In the coding section, the “waiting” block obstructs the program from being activated before the infrared sensor is
pressed. If the sensor is pressed, the guard opens the door and allows you to activate the “if~ or” block.
Using “Waiting” Block
Topic