On 9/27/00, LH Rothman penned:
>#Company#
>#Street#
>#City#, #State# #Zip#
>
>However if  #Street# contains NO DATA I want Cold Fusion to ignore the
>field and not allow any whitespace or new lines.  So the data would then
>display as:
>
>#Company#
>#City#, #State# #Zip#
>
>My problem is that for formatting reasons, I use a <BR> after the
>#Street# for those records that DO contain data in the #Street# field.
>Is it possible to instruct Cold Fusion to ignore <BR> (or a comma or
>whatever) if the field doesn't exist?  If so, an example would be
>awesome.

Just put the <br> inside an if statement:

#Company#<cfif trim(street) is not ""><br>
#Street#</cfif><br>
#City#, #State# #Zip#
-- 

Bud Schneehagen - Tropical Web Creations

_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
ColdFusion Solutions / eCommerce Development
[EMAIL PROTECTED]
http://www.twcreations.com/
954.721.3452
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to