Post Reply 
[BUG] Logical AND
02-02-2014, 05:07 AM
Post: #21
RE: [BUG] Logical AND
(02-01-2014 07:57 PM)patrice Wrote:  3 OR 5 => 1, Boolean as expected
BITOR(3,5) => 7, bitwise as expected
but
#3 OR #5 => #7, bitwise not as expected
BITOR(#3,#5) => #7, bitwise as expected

in order to get OR to act Boolean, one have to resort to:
(#3 <> #0) OR '#5 <> #0)
Here's an undocumented alternative:

or(#3, #5) --> 1

The "or" must be spelled in lowercase letters for it to work that way.

<0|ΙΈ|0>
-Joe-
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
[BUG] Logical AND - Terje Vallestad - 01-26-2014, 04:10 PM
RE: [BUG] Logical AND - Tim Wessman - 01-26-2014, 04:27 PM
RE: [BUG] Logical AND - Terje Vallestad - 01-26-2014, 04:45 PM
RE: [BUG] Logical AND - Tim Wessman - 01-26-2014, 07:49 PM
RE: [BUG] Logical AND - patrice - 01-26-2014, 04:59 PM
RE: [BUG] Logical AND - eried - 01-26-2014, 05:01 PM
RE: [BUG] Logical AND - Tugdual - 01-26-2014, 05:15 PM
RE: [BUG] Logical AND - patrice - 01-26-2014, 05:16 PM
RE: [BUG] Logical AND - Tugdual - 01-26-2014, 06:56 PM
RE: [BUG] Logical AND - parisse - 01-27-2014, 09:20 AM
RE: [BUG] Logical AND - Han - 01-28-2014, 12:02 AM
RE: [BUG] Logical AND - Tugdual - 01-27-2014, 06:37 PM
RE: [BUG] Logical AND - patrice - 01-27-2014, 06:42 PM
RE: [BUG] Logical AND - Tugdual - 01-27-2014, 10:53 PM
RE: [BUG] Logical AND - patrice - 01-27-2014, 11:15 PM
RE: [BUG] Logical AND - Terje Vallestad - 01-27-2014, 11:59 PM
RE: [BUG] Logical AND - Joe Horn - 01-28-2014, 06:03 AM
RE: [BUG] Logical AND - parisse - 01-28-2014, 07:32 AM
RE: [BUG] Logical AND - Eddie W. Shore - 01-30-2014, 01:49 PM
RE: [BUG] Logical AND - patrice - 02-01-2014, 07:57 PM
RE: [BUG] Logical AND - Joe Horn - 02-02-2014 05:07 AM



User(s) browsing this thread: 1 Guest(s)