and (Logical And)

See also: or (Logical Or), if (if, then, else)

The function $and combines the transferred Boolean values (true/false) with a 'logical AND' operator and returns the result, also as a Boolean value.

Syntax

$and(a,b[,c[,...]])

Parameter

Any number of Boolean values (true/false) can be transferred as parameters. The individual fixed values or evaluated expressions are then linked 'logical AND' from left to right.

Return value

Returns true, if all passed parameters return true.

Examples

Syntax

Result

$and(false,false)

false

$and(false,true)

false

$and(true,false)

false

$and(true,true)

true

$and(true,true,true,false)

false

$and(true,true,true,true)

true