OR Function

Office 2013 and later

Last modified: March 09, 2015

Applies to: Office 2013 | Visio 2013

In this article
Syntax
Remarks
Example

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

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

Parameters

Name

Required/Optional

Data Type

Description

logicalexpression1

Required

String

The first expression whose truth you want to evaluate.

logicalexpression2

Required

String

The second expression whose truth you want to evaluate.

logicalexpressionN

Required

String

The Nth expression whose truth you want to evaluate.

Return Value

Boolean

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.

OR(Height > 1,PinX > 1)

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

Show: