cool. thats what i was lookin fer :) back to xml and cfmx...this is cool schtuff!
tw -----Original Message----- From: Michael Dinowitz [mailto:mdinowit@;houseoffusion.com] Sent: Sunday, November 03, 2002 11:57 PM To: CF-Talk Subject: Re: Words It's all logic. Lets look at it below: <CFIF name IS "michael"> This will evaluate the variable name and compare it to the text michael. Lets expand it: <CFIF name IS "michael"> <CFELSEIF name IS "Judith"> We're doing one evaluation of the variable name for the first CFIF and then another for the CFELSEIF. That's 2 evaluations of the same variable. With more CFELSEIFs of the same type, it becomes more evaluations of the same thing. A CFSWITCH on the other hand evaluates the variable once. It then takes that value and compares it to a hash table (lookup table) to see which CFCASE statement it will fit into. Just the single lookup is enough to save processing. > hello list > > can u tell me that programmatically, and processingly (new word!!) > cfcase/cfswitch sets of code are better/faster than series of > cfif's/cfelse's > > ive never messed with the cfcase/cfswitch family of flow control, cause > way back > when i first started, i learned the cfif way, and now, and just trying > to expand the old horizons... > > thanks > tw > > > -----Original Message----- > From: S. Isaac Dealey [mailto:info@;turnkey.to] > Sent: Sunday, November 03, 2002 11:23 PM > To: CF-Talk > Subject: RE: Words > > > > refind(key, '/archivedocs/'); > > > > The slashes prevent it from returning true if it finds > > 'archivedocsearch' > > and similar mismatches. > > > > --Ben Doom > > Programmer & General Lackey > > Moonbow Software > > You and the regular expressions. ;P I think he's probably looking for > something like ListFindNoCase(path,"archivedocs","/") or for that matter > FindNoCase("/archivedocs/",path) ... although Matthew Walker beat me to > the > answer. :P > > Isaac > Certified Advanced ColdFusion 5 Developer > > www.turnkey.to > 954-776-0046 > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm

