> OK, I ran cftimer on both examples, iif and the if/else way, > and both came > back 0 ms. So I think in this case, since it's only looping > over 10 list > items or whatever, I'll stick with the leaner code. Maybe if > you were > looping over thousands of list elements or query rows or > something, there'd > be a more noticeable performance hit.
Interesting. However, if your app ever need's to scale, it /could/ end up being thousands of list elements, if hundreds of people are firing that code simultaneously. That's why I usually try to simulate some traffic by putting the pieces of code I want to test in a loop that runs thousands of times. It's not the best way to test (a load tester would be better), but it gives you a better idea. Of course, none of this is relevant if you know your app will never have that much traffic. :) ------------- This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. A1. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/cf_lists/message.cfm/forumid:4/messageid:247387 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

