- Posts: 4
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Conditions and changing an "and" to and "or"
- stirdun
- Topic Author
- Offline
- New Member
Less
More
9 years 4 months ago #115729
by stirdun
Conditions and changing an "and" to and "or" was created by stirdun
Ok, so I have a survey that I'm working on completing and here's the issue.
Problem is that I can't change the "and" in bold to an "or" below
(G1Q00013_A1.NAOK == "1" or G1Q00013_A1.NAOK == "2" or G1Q00013_A1.NAOK == "3" or G1Q00013_A1.NAOK == "4" or G1Q00013_A1.NAOK == "5") and (G1Q00013_A2.NAOK == "1" or G1Q00013_A2.NAOK == "2" or G1Q00013_A2.NAOK == "3" or G1Q00013_A2.NAOK == "4" or G1Q00013_A2.NAOK == "5"))
Question 17 and beyond needs to show up if the following criteria is met:
G1Q00013_A1.NAOK == "1" or G1Q00013_A1.NAOK == "2" or G1Q00013_A1.NAOK == "3" or G1Q00013_A1.NAOK == "4" or G1Q00013_A1.NAOK == "5" or G1Q00013_A2.NAOK == "1" or G1Q00013_A2.NAOK == "2" or G1Q00013_A2.NAOK == "3" or G1Q00013_A2.NAOK == "4" or G1Q00013_A2.NAOK == "5"
Problem is, I keep getting the following error and I don't know why since I'm basing the above expression on a question previous to every one of them moving forward. (17,18,19.20 etc...)
Your condition could not be added! It did not include the question and/or answer upon which the condition was based. Please ensure you have selected a question and an answer.
Help!
Problem is that I can't change the "and" in bold to an "or" below
(G1Q00013_A1.NAOK == "1" or G1Q00013_A1.NAOK == "2" or G1Q00013_A1.NAOK == "3" or G1Q00013_A1.NAOK == "4" or G1Q00013_A1.NAOK == "5") and (G1Q00013_A2.NAOK == "1" or G1Q00013_A2.NAOK == "2" or G1Q00013_A2.NAOK == "3" or G1Q00013_A2.NAOK == "4" or G1Q00013_A2.NAOK == "5"))
Question 17 and beyond needs to show up if the following criteria is met:
G1Q00013_A1.NAOK == "1" or G1Q00013_A1.NAOK == "2" or G1Q00013_A1.NAOK == "3" or G1Q00013_A1.NAOK == "4" or G1Q00013_A1.NAOK == "5" or G1Q00013_A2.NAOK == "1" or G1Q00013_A2.NAOK == "2" or G1Q00013_A2.NAOK == "3" or G1Q00013_A2.NAOK == "4" or G1Q00013_A2.NAOK == "5"
Problem is, I keep getting the following error and I don't know why since I'm basing the above expression on a question previous to every one of them moving forward. (17,18,19.20 etc...)
Your condition could not be added! It did not include the question and/or answer upon which the condition was based. Please ensure you have selected a question and an answer.
Help!
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13597
- Thank you received: 2487
9 years 4 months ago #115740
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic Conditions and changing an "and" to and "or"
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
- stirdun
- Topic Author
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 0
9 years 3 months ago #115827
by stirdun
Replied by stirdun on topic Conditions and changing an "and" to and "or"
Denis,
Thank you for your reply. You do custom work, yes? How do I contact you off the forums here?
Thank you for your reply. You do custom work, yes? How do I contact you off the forums here?
The topic has been locked.