Hey,
thank you very much for your answer! I am sorry. I should have been more precise.
I am not exactly trying to "join" certain statements, but my issues is fairly similar (I think).
I am trying to use subquestions from an array-question as "preloads" for a multiple choice question.
Q1 would be something like "How often do you drink these beverages?" and participants shall say if they drink "coke", "sprite", "water", which are the sub-questions, "everyday", "every week", "every month", "never", which are the answer categories.
In a follow up multiple choice question Q2, I want to ask "What do you prefer?" and I want to list the aforementioned beverages in brackets if participants tick "everyday" in Q1. (I obviously have other answer categories in this question)
[ ] Beverages (beverages)
[ ] non-relevant answer category
[ ] non-relevant answer category
My code for Q2 looks like (A1 is the answer code.):
Code:
Beverages ( {if(Q1_SQ001 == "A1", Q1_SQ001.question, )} {if(Q1_SQ001 == "A1", Q1_SQ002.question, )} {if(Q1_SQ001 == "A1", Q1_SQ003.question, )} )
However, this does not work. What works is this, however:
Code:
{if(Q1_SQ001 == "A1", Q1_SQ001.shown, )} {if(Q1_SQ001 == "A1", Q1_SQ002.shown, )} {if(Q1_SQ001 == "A1", Q1_SQ003.shown, )}
This prints "everyday" if this category is ticked.
Moreover, if I use the expression "Q1_SQ001.question" outside of the if-expression, it prints me the correct subquestion ("coke", "sprite", "water").
I also tried to run your code and it does not work.
I hope this made it clearer. If not, then I will upload a sample survey with my issue.
Thank you very much for your help!