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
Get the mailserver that powers this list at http://www.coolfusion.com

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

Reply via email to