Welcome to the LimeSurvey Community Forum

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

(2.6.7) Logic has stopped working...

  • vadindot
  • vadindot's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 6 months ago #173331 by vadindot
(2.6.7) Logic has stopped working... was created by vadindot
I swear this previously worked...

I have two array questions: Q8 & Q9

Q8 is not mandatory

For 2 answer options on Q9 I have the following logic: (Q9_7 & Q9_8)

((! is_empty(q8_4.NAOK)) and (q8_4.NAOK <= "10")) or ((! is_empty(q8_5.NAOK)) and (q8_5.NAOK <= "10"))

If I answer neither q8_4 nor q8_5, then I do not get Q9_7 & Q9_8 (Correct)
If I answer both 0-10, then I do get Q9_7 & Q9_8 (Correct)

If I answer one of them 0-10, but leave the other blank, then I do not get Q9_7 & Q9_8 (WRONG)
If I answer one of them 0-10, but answer the other 99, then I do not get Q9_7 & Q9_8 (WRONG)

So what we need here: if Q8_4 OR Q8_5 are rated 0-10, then Q9_7 and Q9_8 are displayed

Can someone see why it's not working?
The topic has been locked.
More
5 years 6 months ago #173332 by jelo
Replied by jelo on topic (2.6.7) Logic has stopped working...
You might create a little survey with your issue and attach an export (lss) here.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • vadindot
  • vadindot's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 6 months ago - 5 years 6 months ago #173333 by vadindot
Replied by vadindot on topic (2.6.7) Logic has stopped working...
I put this together
Last edit: 5 years 6 months ago by vadindot. Reason: file didn't attach
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 6 months ago - 5 years 6 months ago #173345 by tpartner
Replied by tpartner on topic (2.6.7) Logic has stopped working...
I can't test your survey (on my phone) but try removing the extra brackets and the quotes around the numeric values.

Code:
(!is_empty(q8_4.NAOK) and q8_4.NAOK <= 10) or (!is_empty(q8_5.NAOK) and q8_5.NAOK <= 10)

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 5 years 6 months ago by tpartner.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose