Stephen,

Actually, CF evaluates 0 and non 0 as boolean (like some other languages) -
and doing it this way is actually a performance benefit.

-mk

-----Original Message-----
From: Stephen Moretti [mailto:stephen@;cfmaster.co.uk]
Sent: Friday, November 08, 2002 10:19 AM
To: CF-Talk
Subject: Re: Studio MX


<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
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

Reply via email to