Doesn't quite get what I need because the array will exist, I need to test for a specific element session[BR21102][1][14] will exist, but session[BR21102][1][15] won't depending on options selected, but the below code only tests if session[br21102] exists and is an array w/2d.
-----Original Message----- From: Bryan Love [mailto:[EMAIL PROTECTED]] Sent: Friday, October 04, 2002 3:22 PM To: CF-Talk Subject: RE: Dynamic var name this will check existence like you wanted <cfif structKeyExists(session,var) AND isArray(session[var],2)> </cfif> +-----------------------------------------------+ Bryan Love Macromedia Certified Professional Internet Application Developer Database Analyst TeleCommunication Systems [EMAIL PROTECTED] +-----------------------------------------------+ "...'If there must be trouble, let it be in my day, that my child may have peace'..." - Thomas Paine, The American Crisis "Let's Roll" - Todd Beamer, Flight 93 -----Original Message----- From: Bruce, Rodney S HQISEC/SIGNAL [mailto:[EMAIL PROTECTED]] Sent: Friday, October 04, 2002 2:59 PM To: CF-Talk Subject: Dynamic var name Hello all Hoping someone can help with an isdefined issue. I am trying to do: <CFIF isdefined("session[#var#][#x#][1]")> but am getting the error: must be a syntactically valid variable name. CF seems to be rendering the vars correctly, the debug info shows: Parameter 1 of function IsDefined which is now "session[BR21102][1][15]" must be a syntactically valid variable name I have also tried <CFIF isdefined("session.#var#[#x#][1]")> With same results. Can someone tell me what I am missing? Thanks for any help Rodney ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting.

