RE: Efficient way to handle undefined variables

2003-09-03 Thread J E VanOver
Yep -Original Message- From: Mauricio Giraldo [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 02, 2003 12:56 PM To: CF-Talk Subject: Efficient way to handle undefined variables Yes, you can so... for the example in question (xml optional info) you would go something like

RE: Efficient way to handle undefined variables

2003-09-02 Thread Tech Info
That's what cfparam is for, isn't it? -Original Message- From: Rich Z [mailto:[EMAIL PROTECTED] Sent: Friday, August 29, 2003 3:54 PM To: CF-Talk Subject: Efficient way to handle undefined variables What is the best/most efficient way to handle a scenario where you're populating

Efficient way to handle undefined variables

2003-09-02 Thread Mauricio Giraldo
That's what cfparam is for, isn't it? -Original Message- From: Rich Z [mailto:[EMAIL PROTECTED] Sent: Friday, August 29, 2003 3:54 PM To: CF-Talk Subject: Efficient way to handle undefined variables What is the best/most efficient way to handle a scenario where you're populating

Efficient way to handle undefined variables

2003-09-02 Thread Mauricio Giraldo
sorry for the double post... clocked post by error That's what cfparam is for, isn't it? can you cfparam dynamically named vars? ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription:

RE: Efficient way to handle undefined variables

2003-09-02 Thread J E VanOver
I don't see why not. The variable name passed to cfparam is just a string. Dynamically build the string. Have you tried it? J -Original Message- From: Mauricio Giraldo [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 02, 2003 11:47 AM To: CF-Talk Subject: Efficient way to handle

RE: Efficient way to handle undefined variables

2003-09-02 Thread d.a.collie
Yes, you can -Original Message- From: J E VanOver [mailto:[EMAIL PROTECTED] Sent: 02 September 2003 20:01 To: CF-Talk Subject: RE: Efficient way to handle undefined variables I don't see why not. The variable name passed to cfparam is just a string. Dynamically build the string

Efficient way to handle undefined variables

2003-09-02 Thread Mauricio Giraldo
Yes, you can so... for the example in question (xml optional info) you would go something like this pseudocode? : cfloop for all nodes in xml cfparam name=#nodename##nodenumber# default= /cfloop then you could safely use those variables in cfif ? - mga

RE: Efficient way to handle undefined variables

2003-09-02 Thread Dave Watts
so... for the example in question (xml optional info) you would go something like this pseudocode? : cfloop for all nodes in xml cfparam name=#nodename##nodenumber# default= /cfloop then you could safely use those variables in cfif ? You could, but why not just test for the existence

Efficient way to handle undefined variables

2003-09-02 Thread Mauricio Giraldo
I'm a bit confused about how you're building your variable names, as well. I dunno. I'm just trying to understand Rich Z's issue altogether. : ) ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription:

RE: Efficient way to handle undefined variables

2003-09-02 Thread info
Yea, I'd either use cfparam ... or sometimes it can be easier to use structappend(struct,struct2,false) for this... isaac -- Original Message -- From: [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Sep 02, 2003 08:06 PM Subject: RE: Efficient way to handle undefined variables

Efficient way to handle undefined variables

2003-08-30 Thread Rich Z
What is the best/most efficient way to handle a scenario where you're populating variables from other variables that may or may not exist. If they don't exist, an empty string should be assigned. I wrote a little function to do this with a simple if statement inside: If (isDefined(inVal) {