Gossamer Forum
Home : Products : DBMan : Customization :

no output if blank record

Quote Reply
no output if blank record
This code
print qq| |;
if ($rec{'fcat_read'}) {
print qq|
<TR><TD ALIGN="Right" VALIGN="TOP" WIDTH="20%"><$font_color>fcat_read:</FONT></TD>
<TD WIDTH="80%"> <$font>$rec{'fcat_read'}</Font></TD></TR>
|;
}

is supposed to eliminate output if the field is empty, however since this is the last field of the record, it is showing up (even though it is empty) I think because of the "line break" character...I cant think of anything else.

Anyone have any ideas?

[This message has been edited by Luis (edited January 28, 2000).]