> >>#(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.
>
> So you are saying the answer is true??? Is that what you are
> saying? The answer is 20.
20 *is* true. True is not necessarily 20, though.
--Ben Doom
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

