Welcome, Guest
Username: Password: Remember me

TOPIC: Multiple conditions don't work

Multiple conditions don't work 2 years 11 months ago #64969

  • hotcakes
  • hotcakes's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 3
  • Karma: 0
I'm setting up a survey that has a few questions that should only be seen if certain conditions are met. The logic is as follows:
Q1: Do you smoke?
Yes
Sometimes
Never

Q2: Do you drink?
Yes
Sometimes
Never

Q3: Why do you smoke and drink?

So question 3 should ONLY be seen in you DON'T answer never to BOTH Q1 and Q2.

The condition should be set up as:
If Q1 is not equal to never
OR
If Q2 is not equal to never
Show Q3

HOWEVER... my big issue is that in Limesurvey 1.91, I can't seem to do this. The only operations option is AND (which doesn't work). I can't seem to change the AND to an OR. And I can't find any kind of "advanced" option to let me do it manually. I'm stuck!!

Please help!
The administrator has disabled public write access.

Re: Multiple conditions don't work 2 years 11 months ago #64970

  • holch
  • holch's Avatar
  • NOW ONLINE
  • LimeSurvey Team
  • Posts: 2557
  • Thank you received: 289
  • Karma: 105
Currently, I think there is no OR option. There is a project that is called "Expressionengine" which seems to cover that, but will only be implemented into one of the future releases, as far as I know.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.

Re: Multiple conditions don't work 2 years 11 months ago #64973

  • paulfiner
  • paulfiner's Avatar
  • OFFLINE
  • Expert Lime
  • Posts: 92
  • Thank you received: 1
  • Karma: 1
Surely the logic for Q3 to be shown should be Q1 is not equal to Never AND Q2 is not equal to Never.

If you do really want to use OR then do this:

Set the condition to be Q1 not equal to Never
Click on the little + button to the left of where it says Scenario. This will then show a field with a number 1 in it.
Change the 1 to a 2 and create the second condition of Q2 not equal to Never and click 'Add condition' at the bottom.

This will then show a summary of your scenarios which will use OR as the condition.

Cheers

Paul
The administrator has disabled public write access.
The following user(s) said Thank You: DenisChenu

Re: Multiple conditions don't work 2 years 11 months ago #65004

  • hotcakes
  • hotcakes's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 3
  • Karma: 0
Thank you for the information. All this logic is giving me a headache. :) I misspoke when I wrote my fake scenario on here.

What I meant to say is Q3 should only be shown if I they don't answer "Never" to either Q1 OR Q2 or both. In other words, if they answer "Never" to both questions, it should skip Q3

So, the logic is NOT "Q1 is not equal to Never AND Q2 is not equal to Never". With that logic, answering only one of them as "never" would skip the question.

I will test out the "OR" logic trick you posted.

Thanks
The administrator has disabled public write access.

Re: Multiple conditions don't work 2 years 11 months ago #65015

  • vadindot
  • vadindot's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 51
  • Thank you received: 1
  • Karma: 0
what you need to use is scenarios

first create the condition Q1 not equal to Never

then click on the + next to Scenario to create Scenario 2: Q2 not equal to never
The administrator has disabled public write access.

Re: Multiple conditions don't work 2 years 11 months ago #65017

  • hotcakes
  • hotcakes's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 3
  • Karma: 0
It looks like this worked. Thanks.

This is not at all user friendly. It is perhaps the worst example of interaction design I have seen. Someone needs to do a better job of making this work, or at the very least, add some clear documentation on how this works.
The administrator has disabled public write access.

Re: Multiple conditions don't work 2 years 11 months ago #65018

  • vadindot
  • vadindot's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 51
  • Thank you received: 1
  • Karma: 0
it gets easier as you get used to it

the new expression thingamajig will really help
The administrator has disabled public write access.

Re: Multiple conditions don't work 2 years 11 months ago #65022

  • TMSWhite
  • TMSWhite's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 759
  • Thank you received: 82
  • Karma: 36
You can find details of Expression Manager here.

It is now included in the 1.92 development branch (limesurvey_ci), and in a 1.91 branch (limesurvey_dev_tms), although only the 1.92 branch is likely to be maintained.
The administrator has disabled public write access.

Re: Multiple conditions don't work 2 years 11 months ago #65023

  • holch
  • holch's Avatar
  • NOW ONLINE
  • LimeSurvey Team
  • Posts: 2557
  • Thank you received: 289
  • Karma: 105
hotcakes wrote:
It looks like this worked. Thanks.

This is not at all user friendly. It is perhaps the worst example of interaction design I have seen. Someone needs to do a better job of making this work, or at the very least, add some clear documentation on how this works.

The documentation is a wiki. Everyone who has a login to the forum can also write there. So the "someone" could be you... ;-)

Projects like Limesurvey only can exist when users give something back from time to time...
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.
The following user(s) said Thank You: DenisChenu

Re: Multiple conditions don't work 2 years 11 months ago #65027

  • tpartner
  • tpartner's Avatar
  • NOW ONLINE
  • LimeSurvey Team
  • Posts: 4068
  • Thank you received: 746
  • Karma: 341
It is perhaps the worst example of interaction design I have seen. Someone needs to do a better job of making this work, or at the very least, add some clear documentation on how this works.
Instead of complaining about the FREE software, why don't you join the dev team and fix it.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
Last Edit: 2 years 11 months ago by tpartner.
The administrator has disabled public write access.
The following user(s) said Thank You: DenisChenu
Moderators: ITEd
Time to create page: 0.170 seconds
Donation Image