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 




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