Johnny
>Does MM officially support performing mathematical calculations between #
>signs? I was sorta under the impression that this was considered not a good
>practice. Regardless it is handy.
>
>
>
>Mark W. Breneman
>-Cold Fusion Developer
>-Network Administrator
> Vivid Media
> [EMAIL PROTECTED]
> www.vividmedia.com
> 608.270.9770
>
> _____
>
>From: Dave Carabetta [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, April 20, 2004 2:03 PM
>To: CF-Talk
>Subject: RE: Is it a bug or not a bug?
>
>
>
>>#(true and 4*5)# returns 20.
>>#(false and 4*5)# returns false.
>>#(4*5 and false)# returns false.
>>#(4*5 and true)# returns true.
>>
>>Is it a bug or it is using some sort of _expression_ evaluation that I am not
>
>>aware of.
>>
>
>CF uses short-circuit boolean evaluation. So it'll either stop the moment it
>
>hits a false condition or it'll go to completion. Further, any non-zero
>value evaluates to true, so 4*5 (20) will always evaluate to true.
>
>Regards,
>Dave.
>
> _____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

