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

Reply via email to