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]

