>At 1/25/2001 06:13 PM +0000, Stephen Moretti wrote:
<snip>

><Cfoutput>#iif(isDefined("Attributes.display"),Trim(attributes.name&"_query.
>"&attributes.display),DE(''))#</cfoutput>


This is good advice, and it will also not throw any errors if attributes.display is 
not defined.  For example:

IIf( IsDefined("attributes.foo"), DE("#attributes.foo#"), DE("") )  

would throw an error if attributes.foo wasn't defined, while

IIf( IsDefined("attributes.foo"), "attributes.foo", DE("") )  

would work as expected.

Cheers,
-Max


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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

Reply via email to