RE: -isDefined() finesse

2002-11-25 Thread Raymond Camden
So what is wrong? Your code looks fine to me. === Raymond Camden, ColdFusion Jedi Master for Hire Email: [EMAIL PROTECTED] WWW : www.camdenfamily.com/morpheus Yahoo IM : morpheus "My ally is the Force, and a powerful al

Re: -isDefined() finesse

2002-11-25 Thread Brian Scandale
Sorry, just worked it out... <-cfif isDefined("Form.SerNum"&"#i#")> At 01:11 PM 11/25/02, you wrote: >I am trying to see if a particular dynamic variable is defined... but having trouble >building the ifDefined argument. > >Form.SerNum1 >Form.SerNum2 >Form.SerNum3 ...etc. are built dynamically

RE: -isDefined() finesse

2002-11-25 Thread Raymond Camden
Hire Email: [EMAIL PROTECTED] WWW : www.camdenfamily.com/morpheus Yahoo IM : morpheus "My ally is the Force, and a powerful ally it is." - Yoda > -Original Message- > From: Brian Scandale [mailto:[EMAIL PROTECTED]] > Sent: Monday, November 25, 2002 3:18 PM > T

RE: -isDefined() finesse

2002-11-25 Thread Mark Johnson
Another Option: <-cfloop index="i" from="1" to="#theSerNums.RecordCount#"> <-cfif structKeyExists(Form,'SerNum' & i)> DoSomething <-cfelse> DoSomethingElse <-/cfif> <-/cfloop> however what you have looks fine to me. Mark -Original Mess

RE: isDefined() finesse

2002-11-26 Thread Sam Roach
Because the isdefined function doesn't care what the value of the variable you are passing you don't need to use the evaluate function. However if you wanted to output that value you would have to use something like: #Evaluate("form.serNum#i#")# -Original Message- From: j cc [m