I have a study with many select questions, and constructed lists all having a single parent list
I need to create an extra constructed list to display in a select question.
The first member is simple, for example the selection made in the question 'aw'.
AIC (aw)
The second member is determined by earlier responses, and I have created pass in fields (ax,bx,…fx) which are assigned 0 or 1 values based on responses to earlier questions.
The second member will be the option selected in one of the questions: a3, d3, e3, or f3.
Those questions have constructed lists as their response options: a3p, d3p, e3p, f3p.
I am struggling with the required perl I need in that constructed list.
Intuitively (to me) it seems like I want something like:
AIC (aw)
Begin Unverified Perl
if(VALUE("ax")=1 && VALUE("bx")=1 && VALUE ("cx")=1 ) {AIC(a3);}
if(VALUE("ax")=1 && VALUE("bx")=1 && VALUE ("dx")=1 && VALUE ("cx")=0 ) {AIC(d3);}
else {AIC(f3);}
End Unverified
But looking at past examples it seems I need ADD (a member) rather than AIC
But am not sure how to add the member chosen, for example add the member chosen in question a3 which has the constructed list a3p , or add the member chosen in question d3 which has the constructed list d3p
AIC (aw)
Begin Unverified Perl
if(VALUE("ax")=1 && VALUE("bx")=1 && VALUE ("cx")=1 ) {ADD("a3"),1;}
if(VALUE("ax")=1 && VALUE("bx")=1 && VALUE ("dx")=1 && VALUE ("cx")=0 ) {ADD("d3"),1;}
else {ADD("f3"),1;}
End Unverified
Hope someone can help on this
, thanks
Dan