Kreig Zimmerman wrote:
> No.  Len() is evaluated as a Boolean because in CF, True/False, Yes/No, 
> and 1(+)/0 are all evaluated as Boolean pairs.
> 
> Trust me.  I use this everywhere in my own code.

I used to do this a lot too, but I found that spelling it out makes the 
code more legible to others... which is something that all good 
programmers should strive for unless they are 100% positive that nobody 
else will ever have to deal with their code.

  - Rick



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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
Get the mailserver that powers this list at http://www.coolfusion.com

Reply via email to