What would be more interesting is if you ordered the list would it be faster to execute compared to unordering the list?
On 10/4/07, Dale Fraser <[EMAIL PROTECTED]> wrote: > The reason I didn't break was in case the list wasn't in order. > > My version would work on an unordered list. > > Regards > Dale Fraser > > http://learncf.com > > > -----Original Message----- > From: Asha K S [mailto:[EMAIL PROTECTED] > Sent: Thursday, 4 October 2007 4:59 PM > To: CF-Talk > Subject: RE: Next lowest number from array (or list). > > Hey thanks a lot for correcting I have just started learning. And one > more thing in the code I posted was we need to break once the "res" has > been set in order to avoid looping through the whole list. > > > Thanks, > Asha. > > -----Original Message----- > From: Patti Lee [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 04, 2007 1:21 AM > To: CF-Talk > Subject: Re: Next lowest number from array (or list). > > That was kind of my point. Pound signs within IF/ELSE/ELSEIF > statements are wholly unnecessary and are, to me at least, somewhat > indicative of a person who doesn't understand how ColdFusion processes > variables. Not meant as harshly as it sounds, I promise, but might be > a useful thing to remember . > > > I don't think it is necessary to put pound signs around your variables > > until and unless you need to print them on the screen. You can try > > removing them from the code given by Asha. > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Get the answers you are looking for on the ColdFusion Labs Forum direct from active programmers and developers. http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290145 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4