- Posts: 5
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Create Conditions with "or"
- Tokushima
- Topic Author
- Offline
- New Member
Less
More
8 years 10 months ago #119833
by Tokushima
Create Conditions with "or" was created by Tokushima
I need help to create a condition in Limesurvey.
I want to show Question 2 only if the respondent answer yes at 1, 2 or 3 items of the previous items.
Q1) Do you have...
sq1 ... a bike? yes/no
sq2 ... an electric bike? yes/no
sq3 ... a motor bike? yes/no
and to show the next question (Q2) how many miles do you ride each week?) even if only one of the SQ was yes.
Sq1=yes or Sq2=yes or Sq3=yes
How can I do this? thanks for your help
I want to show Question 2 only if the respondent answer yes at 1, 2 or 3 items of the previous items.
Q1) Do you have...
sq1 ... a bike? yes/no
sq2 ... an electric bike? yes/no
sq3 ... a motor bike? yes/no
and to show the next question (Q2) how many miles do you ride each week?) even if only one of the SQ was yes.
Sq1=yes or Sq2=yes or Sq3=yes
How can I do this? thanks for your help
The topic has been locked.
- elissa
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 195
- Thank you received: 70
8 years 10 months ago - 8 years 10 months ago #119841
by elissa
Elzbieta Lesinska
LS voluntary Polish translator and supervisor
Replied by elissa on topic Create Conditions with "or"
Elzbieta Lesinska
LS voluntary Polish translator and supervisor
Last edit: 8 years 10 months ago by elissa.
The topic has been locked.
- Tokushima
- Topic Author
- Offline
- New Member
Less
More
- Posts: 5
- Thank you received: 0
8 years 10 months ago #119842
by Tokushima
Replied by Tokushima on topic Create Conditions with "or"
tyvm
The topic has been locked.
- holch
- Away
- LimeSurvey Community Team
Less
More
- Posts: 11756
- Thank you received: 2753
8 years 10 months ago #119846
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Create Conditions with "or"
You can also write an equation, which would be quite simple.
Assuming that yes is code "1" for all 3 questions, the equation would be:
Assuming that yes is code "1" for all 3 questions, the equation would be:
Code:
sq1==1 OR sq2==1 OR sq3==1
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The topic has been locked.