Repeat instructions specified amount of times flow block

This block will repeat the coding strip a specified amount of times.

Repeat instructions specified amount of times can accept input as a number. Numbers can range from 0 to 9999

LEGO® Powered UP App coding example: Run command the specified amount of times

Step 1: Add coding blocks

  • Flow block – Start
  • Flow block – Repeat instructions specified amount of times, select input value 3
  • Sound and light – Play from the whistle sound library

Step 2: Run the program. Observe that the sound is played 3 times.

Back to Flow blocks page