Knowledge Base

Repeat Block

output-onlinepngtools__231_.pngspike_robot.jpg  This block works for EV3, SPIKE™, Zappy and Ruby!zappi1_flip.png  output-onlinepngtools__101_.png


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:

  1. Drag a Repeat block from the Control Flow category and place it in your code
  2. Define the number of iterations (repeats) you want the loop to perform
  3. Insert a single block or multiple blocks to repeat into the loop's arms





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


Was this article helpful?
3 out of 7 found this helpful


Please sign in to leave a comment.