Hello guys,
First of all, sorry for my English.
I'm making my first survey using LimeSurvey. Right now, I am stuck with logical statements. For better understanding, follow some explanations.
1) I have one multiple choice question with 25 items.
2) Each five of these items have a category. Let's say: Category A (Items 1-5), B (Items 6-10), C (Items 11-15), D (Items 16-20) and E (Items 21-25).
3) Depending on the user's choice, I want the user answers questions related with the category. So, I have questions (array) for A, B, C, D and E.
So, when the user selects only items from A, they will answer the a next question related with A.
But when the user select questions for both category A, B and E. I want the next question shows questions from these three categories.
4) Follows my logic (that I believe it's wrong).
SB = sub-question
Ex: Questions only for category A:
((SB01.NAOK == "Y")) or ((SB02.NAOK == "Y")) or ((SB03.NAOK == "Y")) or ((SB04.NAOK == "Y")) or ((SB05.NAOK == "Y")) and ((( ! SB06.NAOK == "Y")) or (( ! SB07.NAOK == "Y")) or (( ! SB08.NAOK == "Y")) or (( ! SB09.NAOK == "Y")) or (( ! SB10.NAOK == "Y")) and ((( ! SB11.NAOK == "Y")) or (( ! SB12.NAOK == "Y")) or (( ! SB13.NAOK == "Y")) or (( ! SB14.NAOK == "Y")) or (( ! SB15.NAOK == "Y"))) and ((( ! SB16.NAOK == "Y")) or (( ! SB17.NAOK == "Y")) or (( ! SB18.NAOK == "Y")) or (( ! SB19.NAOK == "Y")) or (( ! SB20.NAOK == "Y"))) and ((( ! SB21.NAOK == "Y")) or (( ! SB22.NAOK == "Y")) or (( ! SB23.NAOK == "Y")) or (( ! SB24.NAOK == "Y")) or (( ! SB25.NAOK == "Y")))
Ex: Questions for category A, B and E:
((SB01.NAOK == "Y")) or ((SB02.NAOK == "Y")) or ((SB03.NAOK == "Y")) or ((SB04.NAOK == "Y")) or ((SB05.NAOK == "Y")) and (((SB06.NAOK == "Y")) or ((SB07.NAOK == "Y")) or ((SB08.NAOK == "Y")) or ((SB09.NAOK == "Y")) or ((SB10.NAOK == "Y")) and ((( ! SB11.NAOK == "Y")) or (( ! SB12.NAOK == "Y")) or (( ! SB13.NAOK == "Y")) or (( ! SB14.NAOK == "Y")) or (( ! SB15.NAOK == "Y"))) and ((( ! SB16.NAOK == "Y")) or (( ! SB17.NAOK == "Y")) or (( ! SB18.NAOK == "Y")) or (( ! SB19.NAOK == "Y")) or (( ! SB20.NAOK == "Y"))) and (((SB21.NAOK == "Y")) or ((SB22.NAOK == "Y")) or ((SB23.NAOK == "Y")) or ((SB24.NAOK == "Y")) or ((SB25.NAOK == "Y")))
When I select items for both categories A, B and E. The next group show questions A, for B. Then, repeat questions for A, B and then show questions for E. :blink:
Someone can help me how solve this issue?
Thanks a lot!
:laugh: