Link Search Menu Expand Document

and

Explanation Calculate the logical product of two numbers.
*Added since Version 5.0.1*
*Cannot be used with Mobile & AI version*
Call format var a = and (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 = and(0x0000FFFF, 0x4000C000);    /* a becomes 0x0000C000 */
Related item or, xor method