Re: NOT 0 = no?!?! and NOT 1 = yes?!?!

2007-09-28 Thread Claude Schneegans
NOT 0 should return 1 not yes. Never. NOT is a logical operator and returns a logical value, ie: yes or no Since NOT applies to a logical value, 1 is first converted to no, then NOT returns yes. -- ___ REUSE CODE! Use custom tags; See http

NOT 0 = no?!?! and NOT 1 = yes?!?!

2007-09-27 Thread John Skrotzki
I am trying to flip a bit and just discovered that the NOT operator does not flip it bitwise? NOT 0 should return 1 not yes. Is there a shortcut or do I have to resort to a cfif statement for such a trivial thing CF 7.2 Windows IIS6

Re: NOT 0 = no?!?! and NOT 1 = yes?!?!

2007-09-27 Thread Barney Boisvert
not flip it bitwise? NOT 0 should return 1 not yes. Is there a shortcut or do I have to resort to a cfif statement for such a trivial thing CF 7.2 Windows IIS6 ~| Get the answers you are looking

Re: NOT 0 = no?!?! and NOT 1 = yes?!?!

2007-09-27 Thread Josh Nathanson
I just did a test and this works: #Int(not 0)# returns 1 #Int(not 1)# returns 0 -- Josh - Original Message - From: John Skrotzki [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Thursday, September 27, 2007 2:56 PM Subject: NOT 0 = no?!?! and NOT 1 = yes?!?! I am trying