How to use range to ensure the quality of collected data - example 2

In this case we will use a filtered info element.

  1. The case: Enter income. Allowed income is from 0 to $ 10,000. No answer is allowed. The answer control syntax: (-)|(0:10000) (see previous example)
  2. In addition you want to verify the following:
    • If there is a “no answer”
    • If any incomes are less than $ 3,000.
    • If any income is greater than $ 8,000 (up to maximum = $ 99,999)
  3. Create an info element as the first element AFTER the numeric income e question

    • Insert a text
    • You may also insert a reference to the “income” question
  4. Specify a filter for this info element in the “Options” / “Logic” view.
    • \income.a.1=-;0:3000:8000:99999 (This means EITHER “No answer” OR FROM 0 TO 3000 OR FROM 8000 TO 99999 in question “income”, sub-question “a” and row “1”).
    • Another syntax is: (\income.a.1=-)|(\income.a.1=0:3000)|(\income.a.1=8000:99999)
  5. The message will show like this in the interview:

  6. Note: If you use reference to the answer, and allow no answer, you should probably create two info elements:
    • One with a filter: \income.a.1=0:3000;8000:99999 (as described above)
    • One with a filter: \income.a.1=- (where the text is something like: “You didn't enter any income…”. The reason: Reference to an unanswered question returns “?????????”