Using Perl to calculate a value then set the value to a variable.

Hello, I previously used this code in an older version. I am trying to use this code currently in the Lighthouse-9 and it is not working


<input name="Calc_T1" id="Calc_T1" type="hidden" value ="

[% Begin Unverified Perl


my $a = 0;
my $sum1 = 0;
for ($a = 2; $a <= 117; $a++) {
my $val1 = 0;
my $elmnt1 = GETVALUE('Q4_r'. $a.'_c1');

if ($elmnt1 != "")
{
$val1 = ($elmnt1);
}

if ($val1 > 0)
{
$sum1 =($sum1) + ($val1);

}

}

return $sum1;

End Unverified

%]
">




Please help.

thank you in advance

Resolved
1 reply