Actually, in CF 0 evaluates to a boolean false.  Any non zero integer
evaluates to a boolean true

<CFSET boolFalse = 0>
<CFSET boolTrue = 1>

<CFIF boolFalse>
boolFalse does not equal zero<BR>
<CFELSE>
boolFalse equals zero<BR>
</CFIF>
<CFIF boolTrue>
boolTrue does not equal zero<BR>
<CFELSE>
boolTrue equals zero<BR>
</CFIF>

Cheers,

Jeff

----- Original Message -----
From: "Stephen Moretti" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, November 08, 2002 9:18 AM
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
Get the mailserver that powers this list at http://www.coolfusion.com

Reply via email to