I created a numeric question that is looping the items selected in a previous question.
I would like to take the answers from the loop and add the values together. For example item.1 + item.2 etc. then create a constructed list using Perl.
I used the below code but it is not working.
my $val_1 = GETVALUE("QS4b.1") + GETVALUE("QS4b.2") + GETVALUE("QS4b.3") ;
my $val_2 = GETVALUE ("QS4b.7") + GETVALUE ("QS4b.11") ;
if ($val_1 > $val_2)
Thank you in advance for any help that can be provided.