historically -1 is true and 0 is false, the "1" is the value that is not
strictly Boolean. However Claude is correct in saying "In almost any
language, 0 is false and not 0 is true, Boolean or not."
--
Jay
> -----Original Message-----
> From: Robertson-Ravo, Neil (RX)
> [mailto:[EMAIL PROTECTED]
> Sent: 19 August 2004 14:44
> To: CF-Talk
> Subject: RE: Double Negative way of making decisions? Good?
>
> This not what I am saying...
>
>
>
> 0 = False
>
> Not 0 = True
>
> Not 1 = False
>
>
>
> What I am saying is that Compare() can yield 3 return
> values....-1,1 or 0 and by saying <cfif NOT Compare(..)> you
> are checking for a Boolean value...
> -1 is not Boolean.
>
>
>
> _____
>
> From: Claude Schneegans [mailto:[EMAIL PROTECTED]
> Sent: 19 August 2004 13:19
> To: CF-Talk
> Subject: Re: Double Negative way of making decisions? Good?
>
>
>
> >>Compare can return -1,0 or 1 which is not Boolean.
>
> In almost any language, 0 is false and not 0 is true, boolean or not.
> Even in C which is strongly typed.
> --
> _______________________________________
> REUSE CODE! Use custom tags;
> See http://www.contentbox.com/claude/customtags/tagstore.cfm
> (Please send any spam to this address:
> [EMAIL PROTECTED]) Thanks.
>
> _____
>
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

