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

mceclip0.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

repeat_block.gif

draw_blue_square.gif

 

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

 

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

Comments

Please sign in to leave a comment.