Repeat using While - Repeat until stopped
The first example of using repeat type "While" demonstrates the basic idea behind repeat While, which is that whatever is repeating will keep repeating so long as the property evaluates to true. A property evaluates to true if it contains the string true or if it is a non-zero numeric value. Anything else is considered false and the repeat will stop. Typically, there would be something inside the repeat that would cause that property to be set to false so that it will stop repeating.
In this case, the composition contains a single clip that consists of a number of slow messages that has a repeat While that repeats based on a custom property in the track whose name is
. When the composition plays, it will run until it is stopped.
This property is called
because it is initialized to the word true and there is nothing in the composition that changes it.
The composition will run forever unless it is stopped. This technique can have some practical uses, such as preventing the need to use a large number of repeats to achieve long play.
When Stop is pressed the Stop dialog box appears.
A While repeat can only be used with serial repeats since parallel repeats start all at once (in which context While has no meaning). Since tracks use parallel repeats only at this time, While can only be used with clips and those that repeat serially.