HP Forums

Full Version: [BUG] Logical AND
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
(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.
Pages: 1 2
Reference URL's