And8 Operator and Function

Purpose

And8 can be used as an operator and as a function. It performs a logical bitwise And of two bit patterns and puts the result in a 64-bit integer.

Syntax

int64 = i And8 j( operator)

int64 = And8(i, j)( function)

int64:64-bit integer variable
i, j:any numeric expression

Description

i And8 j and And8(i, j) set in the result only the bits which are set in both i and j. Before the operation is applied, the arguments are converted to Large (using CLarge).

Example

Print Bin$(3 And8 10, 4)   // Prints 0010

Print Bin$(And8(3, 10), 4) // Prints 0010

See Also

Or8, Xor8, Eqv8, Imp8, Operator Hierarchy

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