(2.6.7) Logic has stopped working...

More
2 months 1 week ago #173331 by vadindot
vadindot created the topic: (2.6.7) Logic has stopped working...
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?

Please Log in or Create an account to join the conversation.

More
2 months 1 week ago #173332 by jelo
jelo replied the topic: (2.6.7) Logic has stopped working...
You might create a little survey with your issue and attach an export (lss) here.

Are you a student conducting a survey? If yes, tell me why you use LimeSurvey?
www.limesurvey.org/forum/development/116...y-you-use-limesurvey

Please Log in or Create an account to join the conversation.

More
2 months 1 week ago - 2 months 1 week ago #173333 by vadindot
vadindot replied the topic: (2.6.7) Logic has stopped working...
I put this together
Attachments:
Last Edit: 2 months 1 week ago by vadindot. Reason: file didn't attach

Please Log in or Create an account to join the conversation.

More
2 months 1 week ago - 2 months 1 week ago #173345 by tpartner
tpartner replied the 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.

(!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: 2 months 1 week ago by tpartner.

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!