HA! So I'm not the only one!
So I thought DE meant "Delay Evaluation" as in "Don't evaluate what's in
these little brackets this until you've satisfied the IIF condition."
I guess not?

On Tue, Sep 7, 2010 at 5:14 PM, Raymond Camden <[email protected]> wrote:

>
> 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:336880
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to