Repeat

Purpose

The Repeat command can be used whenever you want to repeat a bunch of commands a fixed number of times, for example to instruct the athlete to do multiple sets of an exec.

To issue a Repeat command you need the expression that will calculate how many times the commands are going to be executed.

NOTE: The commands that you can insert inside a Repeat are dictated by the surrounding context i.e. whether it is defined inside an exec or inside a group or at the top level.

Definition

In order to issue a Repeat command you have two options, either right-click and select New > Repeat or press Space then N and finally R

Repeat Definition

You must then enter the expression, that will calculate the number of times the commands inside it will be repeated, and click Save to create it. This will open the Repeat command (you can open or close it just by clicking on the repeat expression) and reveal the list of commands that it repeats. This list is now empty but you can insert commands as usual.

Repeat Empty

Counter

You can (optionally) define a counter for the Repeat, which is a name (binding), that will hold the current number out of the total number of times the Repeat command is set to execute starting from 1 and continuing to 2, 3, etc.

To do that right-click and select Add a counter

Repeat Counter

and then give it a name and click Save to add it. You can then use the counter name on expressions.

Execution

A Repeat command will execute the list of its commands one by one and when the last one finishes it will repeat the same list of commands from the start. It will do this for as many times as you have specified on the repeat expression.

After the last repetition the program will continue executing the command after the Repeat.