I know, but I want it inline of an html tag, so that's why I wanted IIF
instead of an if/else block.



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

>
> This should work fine:
>
> <cfif structKeyExists(somestruct, "#y#head")>
>
>
> You don't need IIF at all.
>
>
> On Tue, Sep 7, 2010 at 3:04 PM, Michael Grant <[email protected]> wrote:
> >
> > If my var "y" = "myCell" and I want to know if the key "myCellHead"
> exists
> > in a struct how do I do it? I thought that the following would work in an
> > IIF statement but it doesn't.
> >
> > iif(StructKeyExists(x.classAssign,"#y#head"),DE('yes'),DE('no'))
> >
> > Any ideas?
> >
> >
> >
>
> 

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

Reply via email to