>#(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]

Reply via email to