Jeffry Houser wrote:
> >Note: never, ever compare boolean expressions to 0 or 1 (or false /
> >true), especially to 1 (true). <cfif f(x)> is not always equivalent to
> ><cfif f(x) eq true> - precisely because people can be lazy about mixing
> >numbers with real booleans.
> 
>   I am completely confused by this.
>   What should you compare Boolean Expressions to if not False / 
> True or 0 / 1 ?

I would assume that Sean meant to never do something like:

        <CFSET myBool = true>

        <CFIF myBool EQ true>
                ...
        </CFIF>

When instead, you can go with:

        <CFIF myBool>
                ...
        </CFIF>

But, that's just my interpretation 8^).

--
Mosh Teitelbaum
evoch, LLC
Tel: (301) 625-9191
Fax: (301) 933-3651
Email: [EMAIL PROTECTED]
WWW: http://www.evoch.com/

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Reply via email to