NIPO ODIN Version 5.17

*MIN

Purpose

Sets a minimum.

Syntax

*MIN <n|[expression]|Qn>

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 minimum number of answers allowed.
  • In combination with *NUMBER it defines the minimum value that must be entered.
  • In combination with *NUMBER and a *LIST (question option) it defines the start of the list; code labels that have a lower code value will not be displayed.
  • In combination with *LINE it defines the starting length of the line, the number of screen position the line is initially set at.
  • In combination with *SCALE it defines the code by default selected in the scale. Set to 0 to specify that no starting position is selected.

Arguments

n|expression
A positive integer or expression that gives the minimum answer value or the initial length or position.

Qn
A question reference of a data field. The answer to this question is used as the minimum value.

Example 1

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

(Minimum is 18, maximum is 65)

*QUESTION 101 *NUMBER L4 *MIN [ -999 ]
What was the gross profit for your company last year?

(Type the profit in Millions, if the company made a loss, use negative numbers)

Example 2

*QUESTION 1 *CODES L18 *MULTI *MIN 3
What are your three favorite car brand(s)?

(Minimum 3 brands)

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 #1 *OPEN
16: Other #2 *OPEN
17: Other #3 *OPEN

18: Don’t know *NOCON *NMUL

Example 3

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

The initial value is 3 (the box in the middle)

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

The initial value is 0 (no box preselected)

Example 4

*QUESTION 81 *LINE L2 *MAX 50 *MIN 25
This is an example of a line question, divided in 50 steps. The initial value is 25 (line is halfway the screen)

*QUESTION 82 *LINE L2 *MAX 50 *MIN 0
This is an example of a line question, divided in 50 steps. The initial value is 0 (no line)

See Also