Table of Contents

AND

PET VIC-20 C64 C16 Plus/4 C128

The AND operator performs a bitwise AND operation.

Syntax

<operand> AND <operand>

Both operands can be any type of numeric expression, except FLOAT.

Examples

PRINT 1 AND 0 : REM outputs 0
IF x >= 0 AND x <= 10 THEN PRINT "x is between 0 and 10"

See also