The hash simply needs to be escaped as #iif(bgFlag,DE(' style="background-color: ####DDFFDD"'),DE(''))#
The hash needs to be escaped twice since you are delaying evaluation. The text: style="background-color: ####DDFFDD" Is passed out of the de function as (including the quotes): " style=""background-color: ##DDFFDD""" That text is then evaluated by the iif to: style="background-color: #DDFFDD" ~Brad -----Original Message----- From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 09, 2008 10:14 AM To: CF-Talk Subject: Re: Outputting a hash character in an IIF() function. Dave wrote: > Have you tried assigning it to a variable in a cfset and then displaying the > variable. Alternately, convert to RGB: style="background-color:rgb(221 255 > 221)"' Yes I can set and use a variable, but I was curious why I would have to do this. Why do I need to create five lines to set a variable and use a few bits more memory rather then use one clear function at the point where the decision needs to be made. The RGB solution is a good one. But I am still curious why one can not apparently output a hash mark in this manner. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:296258 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4