OR function

Microsoft Office ShapeSheet

OR function

See also

Returns TRUE (1) if any of the logical expressions are TRUE.

Syntax

OR(logicalexpression1,logicalexpression2,...,logicalexpressionN)

Remarks

Any expression that evaluates to a non-zero value is considered TRUE. If all of the logical expressions are FALSE or equal 0, this function returns FALSE.

Example

OR(Height > 1,PinX > 1)

Returns TRUE (1) if either expression is TRUE. Returns FALSE (0) only if both expressions are FALSE.