And= Operator

Does logical conjunction on the value of a variable and the value of an expression, then changes the variable to the result.

Syntax

variable And= expression

Parts

variable
A Boolean or integer variable or property.
expression
A Boolean or integer expression.

Instructions

The two statements that follow operate the same.

variable And= expression
variable = variable And expression

The element on the left side of And= can be a scalar variable, a property, or an element of an array. A property cannot have the modifier @ReadOnly.

And= does the logical-AND operation to the value on its right side and the variable or property on its left side. Then it changes the variable or property on its left side to the result.

Examples

x = %XAA
x And= %X3F
After run
variablevalue
x42

See also