comparing the string - The actual CFIF is checking for the value returned
back from this Compare which is going to be -1,0,1 which is not
Boolean.....the code Matt listed is checking for a boolean value (well he is
assuming its 1 or 0 / True / False).
I am not sure how CF treats -1 - i.e. does it treat it as False? This is
classic case of using ColdFusion's typelessness to your advantage.
_____
From: Micha Schopman [mailto:[EMAIL PROTECTED]
Sent: 19 August 2004 11:37
To: CF-Talk
Subject: RE: Double Negative way of making decisions? Good?
No, he is checking for a string, not a Boolean. Boolean is either 1/0 or
true/false but not "y" or "n".
Micha Schopman
Software Engineer
Modern Media, Databankweg 12 M, 3821 AL Amersfoort
Tel 033-4535377, Fax 033-4535388
KvK Amersfoort 39081679, Rabo 39.48.05.380
_____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

