try quotes around the argument passed to DE.
DE(struct.keyname) should be DE('struct.keyname')

mike

-----Original Message-----
From: Alexander Sherwood [mailto:[EMAIL PROTECTED]
Sent: Friday, April 04, 2003 2:36 PM
To: CF-Talk
Subject: IIF() and IsDefined()


Help:

#IIF(StructKeyExists(struct, 'keyname'),DE(struct.keyname),DE('no 
key'))#    .........fails if the key is not present.

BUT,

<cfif StructKeyExists(struct, 'keyname')>
    #struct.keyname#
<cfelse>
    no key
</cfif>

doesn't.

Am I missing something about IIF() and DE()? It looks as if both DE() 
expressions must be "evaluateable", and the IIF() just decides which one to 
evaluate? Correct?

Thanks,

----------------------------------
Alex Sherwood
PHS Collection Agency
THE COLLECTORS
T:   301.215.4200
F:   301.664.6834
W: www.phs-net.com


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to