<cfif structKeyExists(form, 'grp_sort_#myIDX#') and len(form['grp_sort_#myIDX#'])> <!--- do something ---> </cfif>
That should do it, and without the need for Evaluate. -- Josh ----- Original Message ----- From: "Les Mizzell" <[EMAIL PROTECTED]> To: "CF-Talk" <cf-talk@houseoffusion.com> Sent: Monday, January 21, 2008 10:23 AM Subject: This evaluate thing always stumps me... > This evaluate thing, which doesn't work below, always stumps me.. > > > <cfloop index="myIDX" list="#FORM.THISid#"> > > <cfif IsDefined("evaluate("form.grp_sort_#myIDX#")") > AND #evaluate("form.grp_sort_#myIDX#")# NEQ ""> > > <!--- Do something ---> > > </cfif> > > > ....which, for myIDX = "115", gets you "Variable form.grp_sort_115 is > undefined". > > > What's the best way to rewrite this so it works.. > > TIA > > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:296996 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4