Operators

&&&

Supported By

Syntax

expression &&& expression

Both expressions yield booleans.

Description

The &&& operator evaluates to the logical AND of the given boolean values. Both values must be true for the expression to evaluate to true. If either value is false, the expression will evaluate to false.

Note

The &&& operator is short-circuited. If the first expression is false, the second expression will not be evaluated. Only when the first expression is true will the second expression be evaluated to determine the truth value of the whole expression. (This has considerable implications if either expression calls a function that has side-effects. For a non-short-circuited version of the &&& operator, use the and operator.)

See Also

and, xor, or, |||