AND ER function

The AND function returns a Boolean value of TRUE if all the specified conditions are true. Otherwise, it returns a Boolean value of FALSE.

Syntax

AND (condition 1[, condition 2, …, condition N])

Arguments

condition 1: Boolean

A valid conditional expression that must be tested. This argument is required.

condition N: Boolean

A valid conditional expression that must be tested. These additional arguments are optional.

Return values

Boolean

The resulting Boolean value.

Usage notes

In the arguments of logical functions, you can use data source references, numeric and text values, Boolean values, comparison operators, and other Electronic reporting (ER) functions. However, all the arguments must be evaluated to a Boolean value of TRUE or FALSE.

Example

AND (1=1, "a"="a") returns TRUE.

AND (1=2, "a"="a") returns FALSE.

Additional resources

Logical functions