Others may have different opinions, but FWIW I think using CFRETURN the way you are is just fine (and much nicer code than CFBREAK with the conditionals.
> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Behalf Of Dawson, Michael > Sent: Sunday, August 10, 2003 10:38 AM > To: [EMAIL PROTECTED] > Subject: RE: Active Directory Query Service was: RE: [CFCDev] Component > Critique Wanted > > > Basically, I'm treating this as a fail-over loop. If the first attempt > doesn't work, then the loop iterates and tries the next server and so > on. > > The cfreturn tag should throw us out of the loop, as well as the entire > method, once I get a successful ldap query. If the first query is > successful, the successive loop iterations will never happen, therefore, > will not create a redundant connection and query. > > I assume your suggestion would be best done with a "conditional" loop > rather than a counter loop such as this? [snip] ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev' in the message of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com).
