NIPO ODIN Version 5.17

*BACK

Purpose

Jumps back to a previous question.

Syntax

*BACK <n|[expression]>

Description

The interview will return to the question specified in the argument. It does in fact the same as pressing the Back button as many times in succession as needed to reach that question.

When the *BACK command is executed, all commands and answers between the current question and the question you are returning to are being undone, as if you actually stepped back through the questionnaire and therefore there is a major difference with the command *GOTO.

Arguments

n|expression
This is a positive integer or expression that indicates an existing question.

Remarks

With *BACK you can only jump back to a question that was previously displayed according to the current routing. If the indicated question was never displayed, the *BACK command will go to the first question that was displayed after this one.

Example

*VARS tot
*VARS answer[3]
*QUESTION 1 *FORM
What proportion of travels are done by ....

(Int. don’t know = ‘999’)

1:Bus *NUMBER L3 *RANGE [ 0 TO 100;999 ] *SAVE ANSWER[1]
2:Train *NUMBER L3 *RANGE [ 0 TO 100;999 ] *SAVE ANSWER[2]
3:Car *NUMBER L3 *RANGE [ 0 TO 100;999 ] *SAVE ANSWER[3]

** If one of the values is a Don't Know, skip the check
*IF [ Q1F1 = 999 \ Q1F2 = 999 \ Q1F3 = 999 ] *GOTO 3

*PUT tot [ Q1F1 + Q1F2 + Q1F3 ]
*IF [ tot > 95 & tot < 105] *GOTO 3

*QUESTION 2 *CODES L1
Your percentages must add up to 100%!

*? answer[1]
*? answer[2]
*? answer[3]
-----
*? Tot

1: Go back and try again *BACK 1

*QUESTION 3

In this example, we jump back to the first question to correct the percentages if they are not in the range 95 to 105.

See Also