AND() Function - Bitwise Logical AND

Syntax

AND(string,string{,ERR=lineref})

Description

The AND() function joins two or more expressions and returns the result. Both arguments must be the same length.

The rules for AND() are:

Argument

 

Result

0 AND 0

=

0

0 AND 1

=

0

1 AND 0

=

0

1 AND 1

=

1

Example

1010 LET Z$=AND($5A$,$1B$)

Where:

$5A$=01011010

 

$1B$=00011011

Then:

Z$ =$1A$=00011010

See Also

IOR() Function - Bitwise Logical OR

Functions - Alphabetical Listing