Link Search Menu Expand Document

or

Explanation Find the logical sum of the two numbers.
*Added since Version 5.0.1*
*Cannot be used with Mobile & AI version*
Call format var s = or( arg1, arg2 )
Return value Calculation result
Arguments Number arg1 The target number. It is automatically converted to a 32-bit integer internally.
Number arg2 The target number. It is automatically converted to a 32-bit integer internally.
Exception None
Example of use
var a;
a = or(0x40000000, 0x0000C000);    /* aは0x4000C000となる */
Related item and, xor method