From the manual:
Simply repeat the event a given number of times. This tests any conditions following it on every repeat, and if those conditions are met also runs the actions and any sub-events on every repeat.
How can I make a condition that will be checked once before the loop and start repeating if that condition is true?