Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Multiple AND and OR within Set Condition

  • BillLenoir
  • BillLenoir's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 2 months ago #130388 by BillLenoir
Multiple AND and OR within Set Condition was created by BillLenoir
I want to do something like: (condition1 and condition2 and condition3) or (condition1 and condition2 and condition4)

However, when I try this, it comes out as: (condition1 OR condition2 and condition3) or (condition1 OR condition2 and condition4)

Why is it when I add a third condition to a scenario, it applies the OR operator?
The topic has been locked.
  • delarammahdaviii
  • delarammahdaviii's Avatar
  • Offline
  • Senior Member
  • Senior Member
More
8 years 2 months ago #130391 by delarammahdaviii
Replied by delarammahdaviii on topic Multiple AND and OR within Set Condition
hi
what's your question type ?
The topic has been locked.
  • BillLenoir
  • BillLenoir's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 2 months ago #130396 by BillLenoir
Replied by BillLenoir on topic Multiple AND and OR within Set Condition
The question on which I'm setting the conditions is Multiple Choice.

The conditions all draw from values in Array (Numbers).
The topic has been locked.
  • delarammahdaviii
  • delarammahdaviii's Avatar
  • Offline
  • Senior Member
  • Senior Member
More
8 years 2 months ago #130398 by delarammahdaviii
Replied by delarammahdaviii on topic Multiple AND and OR within Set Condition
try this :
((condition1 and condition2 and condition3)) or ((condition1 and condition2 and condition4))

i Think is work
The following user(s) said Thank You: BillLenoir
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 2 months ago #130441 by DenisChenu
Replied by DenisChenu on topic Multiple AND and OR within Set Condition
Hi,

If you use same answer for 2 condition :

QCODE.NAOK=="A1" and QCODE.NAOK=="A2" : this can be set like this. Then nlimesurvey set it automatically to 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.

Lime-years ahead

Online-surveys for every purse and purpose