- Posts: 25
- Thank you received: 0
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
- Topic Author
- Offline
- Junior Member
Less
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?
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.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5070
- Thank you received: 1263
5 years 6 months ago #173332
by jelo
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
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
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 25
- Thank you received: 0
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
Attachments:
Last edit: 5 years 6 months ago by vadindot. Reason: file didn't attach
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10629
- Thank you received: 3696
5 years 6 months ago - 5 years 6 months ago #173345
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
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.