I'm trying to create a race variable for quota purposes based on a question called S4 which is multiple-choice, but the code is not working. I get an error 132.
This is the code I'm using in a free format hidden variable:
<input name="Race_code" id="Race_code" type="hidden" value="
[%Begin Unverified Perl
my $Race_grp=0;
if ((VALUE("S4_1")==1) && (VALUE("S4_2")==0) && (VALUE("S4_3")==0) && (VALUE("S4_4")==0)&& (VALUE("S4_5")==0)&& (VALUE("S4_6")==0))
{
$Race_grp=1;
}
elseif
((VALUE("S4_1")==0) && (VALUE("S4_2")==1) && (VALUE("S4_3")==0) && (VALUE("S4_4")==0) && (VALUE("S4_5")==0) && (VALUE("S4_6")==0))
{
$Race_grp=5;
}
return $Race_grp;
End Unverified %]
">
What is wrong with this code? Can somebody help? Thanks!