&& (and) operator

The left-associative, binary infix && operator is used to compute the logical and of two operands

Usage

Boolean false_ = true && false;

Description

Definition

The && operator is defined as:

if (lhs) rhs else false

See the language specification for more details.

Polymorphism

The && operator is not polymorphic.

Type

The result type of the && operator is Boolean.

See also