Knowledge Base

Repeat Block

output-onlinepngtools__231_.png  This block works for both EV3 Robot and Ruby Robot!  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

 

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?
0 out of 4 found this helpful

Comments

Please sign in to leave a comment.

Powered by Zendesk