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.

Stephen Moretti wrote:

><cfmode type="pedant">
>  
>
>>And, really, I would use this:
>>
>><cfif Len(Form.Formname)>
>>
>>    
>>
>
>should be 
>
><cfif Len(Form.Formname) GT 0>
>
>BECAUSE Len() DOES NOT RETURN A BOOLEAN!
>
></cfmode>
>
>I'll go away now..
>
>Stephen
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

Reply via email to