The "&" operator performs a bitwise AND on operands of type number. This is a numeric operation at the bit level. Each bit in the result is 1 if both the corresponding bits in the two input operands are 1. For example, Result := 86|50 0 1 0 1 0 1 1 0 is the binary representation of 86 0 0 1 1 0 0 1 0 is the binary representation of 50 ----------------- 0 0 0 1 0 0 1 0 is the binary representation of 18 Result will store a value of 18 when this statement is executed. The "AND" operator performs a boolean AND on operands of type boolean. If both compared boolean operands are true, then the result of the boolean AND will be true also. If none, or one of the boolean operands are true then the result will be false. Old KB# 18241
↧