NIPO ODIN Version 5.17

*CONTROL

Purpose

Makes the display of answer codes and texts dependent on answers to a previous question.

Syntax

*CONTROL <Qn> <W|N|W*|N*>

Description

This command is always used in combination with *QUESTION, *FORM or *REPEAT and has to be specified after these commands on the same line. This command controls the display of answer codes and texts depending on answers to a previous question. This so-called ‘controlling’ question is referred to by means of Qn. When used in combination with *REPEAT, execution of repetition numbers only takes place (or not) if the numbers correspond with the answer codes mentioned in the controlling question.

Arguments

Qn
The reference to the control question where n is the number of the question.

W
Only answer categories that were mentioned at the control question are being displayed.

N
Only answer categories that were not mentioned at the control question are being displayed.

W*
Answer categories that were not mentioned at the control question are marked with an asterisk (NIPO CATI / NIPO CAWI only)

N*
Answer categories that were mentioned at the control question are marked with an asterisk (NIPO CATI / NIPO CAWI only)

Remarks

  • Make sure that the control question and the current question have the same set of answer categories. Categories that are suppressed as a result of this command, can't be part of the answer. When all categories are suppressed the question will be skipped.
  • Empty lines for categories that are suppressed by *CONTROL will be skipped if the categories are automatically divided into columns on screen.
  • In a form question, *CONTROL automatically suppresses empty lines that are the result of the control.
  • When controlling a repeat block, W* and N* have no meaning.

Example 1

*QUESTION 1 *CODES 61L5 *MULTI

What PC makes do you know?

1: Acer
2: IBM
3: Tulip
4: Other *OPEN
5: Don’t know *NMUL

*QUESTION 2 *CODES 66L5 *MULTI *CONTROL Q1 N

Which of the following PC makes do you know?

1: Acer
2: IBM
3: Tulip

5: None of these *NMUL *NOCON

In this example, the answers mentioned in question 1 are not displayed in question 2. However, if Don’t know is selected in question 1, this category will be displayed in question 2, since it is excluded from the control option by *NOCON.

Example 2

*TEXTVARS brand
*QUESTION 1 *CODES L5 *MULTI

What PC makes do you know?

1: Acer
2: IBM
3: Tulip
4: Other *OPEN

5: Don’t know *NMUL

*REPEAT 3 *CONTROL Q1 W
*REPNUM 1: *PUT brand "Acer"
*REPNUM 2: *PUT brand "IBM"
*REPNUM 3: *PUT brand "Tulip"
*QUESTION 2 *CODES L1

What do you think is the quality of *?brand ?

1: Very good

2: Good

3: Poor

4: Very poor


5: Don’t know \ no answer

*ENDREP

In this example, question 2 will only be asked for makes that were mentioned in question 1.

See Also