or (Logical Or)

See also: and (Logical And), if (if, then, else)

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

Syntax

$or(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 OR' from left to right.

Return value

Returns true, if at least one of the parameters returns true.

Example

Syntax

Result

$or(false,false)

false

$or(false,true)

true

$or(true,false)

true

$or(true,true)

true

$or(false,false,true,false)

true