NIPO ODIN Version 5.17

*IF (question option)

Purpose

Display a question under condition.

Syntax

*IF <[n|expression]> ["text"]

Description

This command is always used in combination with *QUESTION and a question type definition and must be specified on the same line. This command puts a condition on a question. The question will only be displayed if the expression is true. For a detailed explanation of expressions, see Expressions.

Arguments

expression
A boolean expression with as result true or false.

text
Any text. If, when creating variables during an export, the question filters are copied, this text will be copied in the variable file. In NIPO Diana, this text is placed above the table with straight runs and cross tabulations.

Example

*QUESTION 15 *CODES 96
Do you own a DVD player?

1: Yes
2: No

*QUESTION 16 *CODES 97 *IF [ Q15 , 1 ]
Did you use your DVD player yesterday?

1: Yes
2: No

In this example, question 16 will only be asked if the answer to question 15 is code 1.

See Also