Hello,
I'm attempting to use logic that pipes rows into a grid question based off of answers to a multiple select question, but I can't get it to work unfortunately.
I currently have it constructed as such:
Begin Unverified Perl
if (VALUE("s2_1")==1) { ADD("S9RowList",1, 3);}
if (VALUE("s2_2")==1) { ADD("S9RowList",1, 2);}
if (VALUE("s2_5")==1) { ADD("S9RowList",1, 2);}
if (VALUE("s2_4")==1) { ADD("S9RowList",1, 3);}
if (VALUE("s2_6")==1) { ADD("S9RowList",1, 3);}
if (VALUE("s2_8")==1) { ADD("S9RowList",1, 3);}
if (VALUE("s2_9")==1) { ADD("S9RowList",1, 3);}
if (VALUE("s2_10")==1) { ADD("S9RowList",1, 3);}
if (VALUE("s2_11")==1) { ADD("S9RowList",1, 3);}
End Unverified
Essentially, some of the answers from S2 will pipe in 2 rows for S9 and other answers will pipe in 3 rows. I believe it's not working because I need some OR statements, but I'm not sure of how to properly write these.
Any help would be greatly appreciated!!
Perlscript Issue
Resolved
5 replies