You can do StructKeyExists in stead of is defined:
<cfif StructKeyExists( FORM, "client_#directory.Name#" )> <cfelse> </cfif> But without a bit more code I can't really know what you are doing. ...................... Ben Nadel Certified Advanced ColdFusion Developer www.bennadel.com -----Original Message----- From: James O'Dowd [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 01, 2006 8:11 AM To: CF-Talk Subject: Re: how do i recordset with variables Actually while you're here, i just need a little help with the last part of this page, it's to do with the insert function when it's updating the record. I need it to cycled through the directories and update accordingly. Below is a snippet of code i'm using at the moment, which is obviously now no good. I'm guessing i need to set up another cfdirectory loop similar to before and doing something like FORM.client_#directory.Name# but i have a small inkling it wouldn't work... , client_ongoingcontracts= <cfif IsDefined("FORM.client_ongoingcontracts")> 1 <cfelse> 0 </cfif> , client_healthandsafety= <cfif IsDefined("FORM.client_healthandsafety")> 1 <cfelse> 0 </cfif> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:258682 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4