A logical bit-wise AND of two bit patterns, whereby the first pattern must be in an integer variable.
i &= j
i: ivar
j: integer expression
i &= j sets, in the integer variable i, only the bits which are set in both i and j.
Print Bin$(3, 4) // Prints 0011
Print Bin$(10, 4) // Prints 1010
Local i% = 3
i% &= 10
Print Bin$(i%, 4) // Prints 0010
i = i %& j or i = i And j are synonymous with i &= j and can be used instead.
{Created by Sjouke Hamstra; Last updated: 17/09/2014 by James Gaite}