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
  • stirdun's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 3 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.
  • DenisChenu
  • DenisChenu's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 3 months ago #115740 by DenisChenu
Replied by DenisChenu on topic Conditions and changing an "and" to and "or"
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 service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • stirdun
  • stirdun's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 2 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?
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose