This block works for EV3, SPIKE™, Zappy and Ruby!
Ever wanted to do something again and again and again?
The Repeat X Times block repeats a single block or multiple blocks in a loop a defined number of times.
To achieve this:
- Drag a Repeat block from the Control Flow category and place it in your code
- Define the number of iterations (repeats) you want the loop to perform
- Insert a single block or multiple blocks to repeat into the loop's arms
Configuration
Parameter | Description | Compatible Blocks | Range |
repeat | Defines the number of times to repeat the commands that follow the do paramater of the block. |
|
-100 to 100 |
Comments
Please sign in to leave a comment.