Bah - I hacked away at it for 10 minutes before remembering why I
hated IIF/DE in the first place. ;)

On Tue, Sep 7, 2010 at 4:04 PM, Michael Grant <[email protected]> wrote:
>
> Try running this:
>
> <cfset x = {}>
> <cfset y = "all">
> <cfoutput>
> #iif(StructKeyExists(x,"#y#head"),DE('yes'),DE('no'))#
> </cfoutput>
> <p>
> <!--- <cfset x["allhead"] = "booger"> --->
> <cfoutput>
> #iif(StructKeyExists(x,"#y#head"),DE(x["#y#head"]),DE('no'))#
> </cfoutput>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336879
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to