Keep doing the process (Yes) until something happens (No).
A loop is like a circle that can go on indefinitely, it makes programming easier and more efficient.
There are several kinds of loop constructs called
Do While Loop - keep repeating the code until a certain condition is met.
While Loop - keep repeating the code if the condition is true, stop once false.
For Loop - keep repeating the code for a certain number of predetermined times.
Foreach Loop - each time the code is repeated, do this operation.
Infinite Loop - keep repeating the code, forever.
In Scratch, Loops are available from within the Control section of the commands. A simple way to illustrate Loops is by moving the Sprite to a random position, or by changing the Costume on a Sprite to animate it.
-
Add a short summary or a list of helpful resources here.