Wrong list, but....
if($company2) {print $company2};
HTH
Dick
At 9:17 PM -0500 2/23/01, Shawnea Carter wrote:
>Code snip below.
>
>How do I get Company2 to only display if company2 is not null?
>
>Sincere appologies for the OT post, but I'm trying to get out of the office
>so I can close and move into my new house and I figured someone here would
>have a quick answer for me.
>
>TIA
>
>Shawnea
>
>Here's the snip:
>
>foreach ( @matches ) {
> @entries = split( ';', $_ );
>
> $state = $entries[ 0 ];
> $company1 = $entries[ 2 ];
> $company2 = $entries[ 3 ];
> $city = $entries[ 4 ];
> $phone = $entries[ 5 ];
> $cert = $entries[ 6 ];
>
> $htmlList .=
> "<TR>\n" .
> " <TD BGCOLOR=LIGHTGOLDENRODYELLOW align=left><FONT
>FACE=Verdana,Arial,Helvetica COLOR=black SIZE=1><B>\n".
> " Company1:$company1</B></FONT><FONT
>FACE=Verdana,Arial,Helvetica COLOR=black
>SIZE=1><B><BR>Company2:$company2</B></FONT>".
> " </TD>\n".
> " <TD BGCOLOR=LIGHTGOLDENRODYELLOW><P ALIGN=Center><FONT
>FACE=Verdana,Arial,Helvetica COLOR=black SIZE=1>$state</FONT></TD>\n".
> " <TD BGCOLOR=LIGHTGOLDENRODYELLOW><P ALIGN=Center><FONT
>FACE=Verdana,Arial,Helvetica COLOR=black SIZE=1>$city</FONT></TD>\n" .
> " <TD BGCOLOR=LIGHTGOLDENRODYELLOW><P ALIGN=Center><FONT
>FACE=Verdana,Arial,Helvetica COLOR=black SIZE=1>$phone</FONT></TD>\n".
> " <TD BGCOLOR=LIGHTGOLDENRODYELLOW><P ALIGN=Center><FONT
>FACE=Verdana,Arial,Helvetica COLOR=black SIZE=1>$cert</FONT></TD>\n" .
> "</TR>\n";
> }
> }
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists