Desktop User Guides > Professional > Interview scripting > Interview scripting: Getting started > Changing the order in which questions are asked
 
Changing the order in which questions are asked
As you run the interview, you might notice that the order in which you defined the questions is not the best order in which to ask them. For example, it might be better to ask for the respondent’s email address only if the respondent wants to receive the online newsletter. You do not have to change the order of questions in the metadata section in order to do this: change only change the order in which the questions are asked by the Routing section.
Procedure
1 In the Routing section, cut and paste the lines for the GetNewsletter and Email questions so that they appear as the last questions in the interview and in the following order:
GetNewsletter.Ask()
Email.Ask()
End Routing
2 To ask for email addresses only for respondents who want to receive the online newsletter, apply a filter to the Email question. Make the following highlighted additions to the Routing section:
If GetNewsletter.Response.Value = True Then
  Email.Ask()
End If
3 Press F5 to run the interview. When you reach the GetNewsletter question, click the check box, and then click Next. The Email question appears.
4 When you finish the first interview, click F5 again to run another interview; when you reach GetNewsletter, click Next without clicking the check box. The Email question does not appear.
Requirements
UNICOM Intelligence Professional with Interview Scripting.
Next
Changing the look of the interview
See also
Interview scripting: Getting started