I have two pass-in variables that are populated in the survey.
I am trying to create a question that displays text for one or the other pass-in variables based on previous answers. I am trying the following code and nothing is displaying.
[% Begin Unverified Perl
if (GETVALUE("CURRCOMM1") >= 1)
{
return LISTLABEL("AAMode1DisplayList","CURRENTMODE");
}
else
{
return LISTLABEL("AAMode1DisplayList","PRIMARYMODE");
}
End Unverified %]
It looks like the "LISTLABEL" command does not work within perl as when I test it there is no text. Is there some way to accomplish this or do I need to create two questions?