Questions and response-based Goto's
The overall routing in an MDM document is stored in the Routing object, which has a collection of RoutingItem objects arranged in the order in which they need to be processed in an interview. To create the main body of the routing script, the mrRoutingScript MDSC processes each routing item and generates the appropriate mrScriptBasic code for each one.
Questions
In the simplest scenario, each routing item is a question with no Goto specification. So, for example, if the MDM document contains the questions Gender, Age and Opinion, the generated script will contain the following lines:
Gender.Ask()
Age.Ask()
Opinion.Ask()
However, if a question name is an mrScriptBasic reserved word, such as Select, the mrRoutingScript MDSC generates the Ask statement as follows:
IOM.Questions["Select"].Ask()
Loops
For loops, the syntax of the generated routing script depends on the setting of the routing item's AskType property and the corresponding MDM Field's IsGrid property. If the value of AskType is atGrid, or the value of AskType is atDefault and the value of IsGrid is True, the generated Ask statement will display the loop as a single grid question, as shown in the following example:
See also