(2.6.7) Logic has stopped working...

More
7 months 3 weeks ago #173331 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?

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

LimeSurvey Partners
More
7 months 3 weeks ago #173332 by jelo
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

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

More
7 months 3 weeks ago - 7 months 3 weeks ago #173333 by vadindot
I put this together
Attachments:
Last edit: 7 months 3 weeks ago by vadindot. Reason: file didn't attach

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

More
7 months 3 weeks ago - 7 months 3 weeks ago #173345 by tpartner
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: 7 months 3 weeks 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!