02-02-2014, 05:07 AM
(02-01-2014 07:57 PM)patrice Wrote: [ -> ]3 OR 5 => 1, Boolean as expectedHere's an undocumented alternative:
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)
or(#3, #5) --> 1
The "or" must be spelled in lowercase letters for it to work that way.