%& Operator

Purpose

Performs a logical bit-wise AND of two bit patterns.

Syntax

i %& j

i, j:integer expression

Description

i %& j sets in the result only the bits which are set in both i and j.

Example

Print Bin$(3 %& 7, 4// prints 0011

Remarks

And is synonymous with %& and can be used instead:

Print Bin$(3 And 7, 4// prints 0011

See Also

And, Or, Xor, Imp, Eqv, |, %|, ^^, Operator Hierarchy

{Created by Sjouke Hamstra; Last updated: 17/09/2014 by James Gaite}