>Run this:
>
><cfif true and (4*5)>true<cfelse>false</cfif><br>
><cfif (4*5) and true>true<cfelse>false</cfif><br>
><cfif false and (4*5)>true<cfelse>false</cfif><br>
><cfif (4*5) and false>true<cfelse>false</cfif><br>
><br>
><cfoutput>#true and (4*5)#</cfoutput><br>
><cfoutput>#(4*5) and true#</cfoutput><br>
><cfoutput>#false and (4*5)#</cfoutput><br>
><cfoutput>#(4*5) and false#</cfoutput><br>
>
I get:
true
true
false
false
20
true
false
false
Interesting. I would have guessed that both sets would have returned the
same exact results. That, to me, is indeed a bug.
However, to Johnny Le's original question (at least, as I understood it),
the fact that it evaluates to a true condition (even if it's 20) is *not* a
bug.
Regards,
Dave.
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

