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.





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290143
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to