NIPO ODIN Version 5.17

*MAX

Purpose

Sets a maximum.

Syntax

*MAX <n|[expression]>

Description

This command is always used in combination with *QUESTION and must be specified after the question type definition on the same line.

  • In combination with *CODES *MULTI it defines the maximum number of answers allowed.
  • In combination with *NUMBER it defines the maximum value that may be entered.
  • In combination with *NUMBER and a *LIST (question option) it defines the end of the list; code labels that have a higher code value will not be displayed.
  • In combination with *LINE it defines the number of steps the line will increase. For example if the maximum is 10 then the line will be on its maximum in 10 steps.
  • In combination with *SCALE it defines the number of points in the scale. Note that the maximum number of points on a *SCALE question is 26.

Arguments

n|expression
This is a positive integer or expression that gives the maximum answer value.

Example 1

*QUESTION 91 *NUMBER L2 *MAX 65
What is your age?

(Maximum is 65)

*QUESTION 92 *CODES L1
Do you smoke?

1: Yes
2: No

*QUESTION 93 *NUMBER L2 *MAX [ Q91 ]
At what age did you start smoking?

(Maximum is current age)

Example 2

*QUESTION 1 *NUMBER L1
How many cars do you have?

*QUESTION 2 *CODES L16 *MULTI *MAX [ Q1 ] *IF [ Q1>=1 ]
What brand(s) of car(s) do you have

(Maximum as many brands as you have cars)

1: Citroen
2: Fiat
3: Ford
4: Hyundai
5: Mazda
6: Mitsubishi
7: Nissan
8: Opel
9: Peugeot
10: Renault
11: Suzuki
12: Toyota
13: Volkswagen
14: Volvo

15: Other *NOCON *OPEN
16: Don’t know *NOCON *NMUL

In this example, no more answers can be given than the number of cars mentioned in Q1.

Example 3

*QUESTION 71 *SCALE L1 *MAX 5
This is an example of a scale question with 5 boxes.

*QUESTION 72 *LINE L2 *MAX 50
This is an example of a line question, divided in 50 steps.

See Also