Group

An Group is one of the core elements of the Coach language and it is similar with Exec. It is a named and parameterized collection of commands that when applied (via the Apply command) it will execute those commands.

Groups are typically used to provide structure to a program. One can create a january group to group all exec applications that happen for the month of January (in a year-round programming scenario) or can create a warmup group that will collect all the execs targeted for a warmup before the main workout.

Definition

To define an Group you only need to give it a name with the usual naming limitations i.e. the name has to consist only of letter characters _ and ?. The Trainerflow convention is to use a lowercase name for groups.

This can be done in two ways either by right-clicking and selecting New > Group or by pressing Space and then G.

Group Definition

Group is the only element, besides Exec, that can be navigated. You can read more about navigation on Execs' documentation here.

Commands

You will notice that inside a group not all commands are available. This is because its purpose is to generate the specification for the athlete only, so you can only define inputs, outputs and actions and use the specify, measure, decide and ask commands.

Parameters

As with Exec a Group can have any number of parameters. Read more here.

Usage

See the apply command.