I thought of that, but then wasn't sure how that would behave if capability_detail was a query.
On Thu, Jun 30, 2011 at 12:11 PM, Andrew Scott <andr...@andyscott.id.au>wrote: > > Actually without getting into a flame war with Dave and others, it should > be > better to use > > <cfif structKeyExists(capability_detail, 'capability_id')> > </cfif> > > And you should avoid using isDefined(). > > > Regards, > Andrew Scott > http://www.andyscott.id.au/ > > > > -----Original Message----- > > From: Dan Baughman [mailto:dan.baugh...@gmail.com] > > Sent: Friday, 1 July 2011 4:05 AM > > To: cf-talk > > Subject: Re: Stupid Question > > > > > > You would ask it like this: > > <cfif IsDefined('capability_detail.capability_id')> > > > > > > On Thu, Jun 30, 2011 at 11:58 AM, Robert Harrison < robert@austin- > > williams.com> wrote: > > > > > > > > Just asking the question is bad... the line > > > > > > <cfif IsDefined(capability_detail.capability_id)> > > > > > > Gives me the error > > > Element CAPABILITY_ID is undefined in CAPABILITY_DETAIL. > > > > > > > > > Robert B. Harrison > > > Director of Interactive Services > > > Austin & Williams > > > 125 Kennedy Drive, Suite 100 > > > Hauppauge NY 11788 > > > P : 631.231.6600 Ext. 119 > > > F : 631.434.7022 > > > http://www.austin-williams.com > > > > > > Great advertising can't be either/or. It must be &. > > > > > > Plug in to our blog: A&W Unplugged > > > http://www.austin-williams.com/unplugged > > > > > > > > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > ~~~~~~~~~~~| > > Order the Adobe Coldfusion Anthology now! > > http://www.amazon.com/Adobe-Coldfusion- > > Anthology/dp/1430272155/?tag=houseoffusion > > Archive: http://www.houseoffusion.com/groups/cf- > > talk/message.cfm/messageid:345988 > > Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm > > Unsubscribe: http://www.houseoffusion.com/groups/cf- > > talk/unsubscribe.cfm > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:345996 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm