How-To Guide
SCRATCH CODING KIT
Intro to ‘Loop’
Infinite repetition
To understand how loops work, we will use the lizard robot. We will use the loop to infinitely rotate the motor
instead of using an infinite number of blocks. Refer to the picture below.
If you activate this, the left wheel of the lizard robot will turn on for 1 second and turn off.
Now, we will use the ‘infinitely repeat’ block to keep turning on and off the left wheel. You can find this block
under the ‘Control’ tab in the palette. Drag it to the script and make it surround the other blocks.
If you activate this program, you will see the motor repeat turn on and off continuous. This is on infinite
repetition.