and

Navigation:  Language Reference > Operators > Boolean >

and

Previous pageReturn to chapter overviewNext page

Syntax

a and b

Description

a and b performs a logical AND between a and b. If a or b are not a boolean, 0 represents a logical false and any nonzero value represents a logical true. The truth table for this operator is shown below.

Table

a

b

a and b

false

false

false

false

true

false

true

false

false

true

true

true

Limitations

a and b must be scalars.