If you're on CF5 or previous, this will have to be 2 statements:
<cfif IsDefined("evaluate("form.grp_sort_#myIDX#")")>
<cfif #evaluate("form.grp_sort_#myIDX#")# NEQ "">
-----Original Message-----
From: Les Mizzell [mailto:[EMAIL PROTECTED]
Sent: Monday, January 21, 2008 1:24 PM
To: CF-Talk
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:296993
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4