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"

More
10 years 10 months ago #115729 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!
The topic has been locked.
More
10 years 10 months ago #115740 by DenisChenu
Hi,

2 solution:
- Use scenario
- Use Expression

I always use Expression.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
More
10 years 10 months ago #115827 by stirdun
Denis,

Thank you for your reply. You do custom work, yes? How do I contact you off the forums here?
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose