Hello everybody,
I would like to use an IF-ELSE statement for a constraint in one of my questions. Basically, I would like to have one constraint if a specific answer was selected in a previous question, and another constraint for the others answers.
I have been looking to different posts and solutions in this forum, but neither helped me. So I am trying to understand the syntax for using IF-ELSE statements in questions constraints, but I cannot find any documentation that helps. Can anyone help?
The case would be something like this:
Q1: Name of indicator (select_one)
- name1
- name2
- name3
Q2. Value of indicator (decimal)
The constraint in Q2 should be the following:
If Q1=name1 , then Q2 should be between 1 and 12
If Q1=name2 or name3, then Q2 should be >0
Many thanks!
Solange