Input

An Input is one of the core elements of the Coach language. It represents information that can be provided by the athlete.

Definition

To define an Input you will need a name, a type and (optionally) options that customize how it is presented on the simulator.

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

Input Definition

There you can select one of the available types for the input. Think of it as the type of the value that you get from the athlete when you use this input. It can be either a

  • Number - e.g. age
  • Measurement - e.g. duration
  • Boolean - e.g. easy?

NOTE: The Measurement option requires, also, the unit of measurement.

After setting the type you have to enter its name which has to consist only of letter characters _ and ?. The Trainerflow convention is to use a lowercase name for inputs.

Properties

After you have created your input you can customize how it will look on the simulator by editing its properties. You can right-click on the input and select Add a property (same as with action).

How the properties affect the appearance of the input on the simulator can be seen below

Input on Simulator

Usage

See the ask and measure commands.