Desktop User Guides > Professional > Interview scripting > Writing interview scripts > Repetitive actions in the routing section
 
Repetitive actions in the routing section
This section explains how to define repetitive actions in the routing section, and is primarily concerned with actions other than asking repeated questions. Repeated questions are a special type of repetition that is partially controlled by the way the questions are defined in the metadata section, and although this section contains a short topic about repeated questions (see Repeating questions), most of the information is in Repeated questions.
Keyword
Description
Do...Until
Repeat statements until a condition becomes True.
Do...While
Repeat statements all the time a condition is True.
For...Next
Repeat statements a specified number of times.
For Each...Next
Repeat statements for each element in an array or collection.
While...End While
Repeat statements all the time a condition is True.
With
Execute a series of statements on a single object.
This section also explains how to repeat a statement or an assignment for each object in a collection; for example, how to refer to the individual repetitions of a loop or grid questions, or how to refer to all the answers given to an earlier question. The general term for this is object collection iteration. See Object collection iteration.
See also
Repeating questions
Object collection iteration
Repeat while or until a condition is true
Repeat while a condition is true
A set number of repetitions
Repeat for each element of an array or collection
Executing a series of statements on a single question
Writing interview scripts