I'm trying to set up a conditional display of a field, IF it has data in it.
I tried this code (based on a posting I found here), but it doesn't work -- the field displays regardless of whether it has data in it or not:
print qq|
<TR><TD align=right>Balance:</td><td>$rec{'Balance'} yards</td></tr>
|;
} else {
print qq| |;
}
What am I doing wrong?
Thanks,
John
I tried this code (based on a posting I found here), but it doesn't work -- the field displays regardless of whether it has data in it or not:
Code:
if ($rec{'Balance'}) { print qq|
<TR><TD align=right>Balance:</td><td>$rec{'Balance'} yards</td></tr>
|;
} else {
print qq| |;
}
What am I doing wrong?
Thanks,
John