Non-zero values are true, and zero is false. A short-circuited boolean
evaluation returns the value of the last _expression_ that is evaluated.
Note, that whether the first test returns 'true' or '20', both are true
values, so it won't affect anything. You can use 20 any place you use true
and it will behave the same way.
Cheers,
barneyb
> -----Original Message-----
> From: Johnny Le [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 20, 2004 11:59 AM
> To: CF-Talk
> Subject: 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.
>
> Johnny
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

