DriveWorks Pro 15: Or [send feedback...]

Or

Determines if any of the specified logical expressions are true.

Syntax

OR( [ LogicalExpression1], [ LogicalExpression2], [ LogicalExpression n] )

LogicalExpression1, LogicalExpression2, LogicalExpression n, are rules that, when evaluated, return either TRUE or FALSE.

There can be 1 to 255 LogicalExpressions in any one OR Function.

If at least one of the LogicalExpressions returns TRUE then the OR function will return TRUE.

If all LogicalExpressions return FALSE then the OR function will return FALSE.

Examples

Rule

Meaning
OR(ProductComboBoxReturn = "Door", "ProductCodeTextBox = "D355")Checks the return values of a combo box called ProductComboBox and a text box called ProductCodeTextBox. If the ProductComboBox is equal to "Door" or the ProductCodeTextBox is equal to "D355" then the OR function will evaluate to TRUE. See the Example Breakdown for the different outcomes of the OR function

Example Outcomes

LogicalExpression1
ProductComboBoxReturn = "Door"

LogicalExpression2
ProductCodeTextBox = "D355"

Result of the OR function

TRUETRUETRUE
TRUEFALSETRUE
FALSETRUETRUE
FALSEFALSEFALSE

Comparing Values

Operator

Meaning
<Checks to see if the value on the left hand side of the operator is less than the value on the right hand side, and if so, returns TRUE, otherwise returns FALSE.
<=Checks to see if the value on the left hand side of the operator is less than, or equal to, the value on the right hand side, and if so, returns TRUE, otherwise returns FALSE.
>Checks to see if the value on the left hand side of the operator is greater than the value on the right hand side, and if so, returns TRUE, otherwise returns FALSE.
>=Checks to see if the value on the left hand side of the operator is greater than, or equal to, the value on the right hand side, and if so, returns TRUE, otherwise returns FALSE.
<>Checks to see if the value on the left hand side of the operator is not equal to the value on the right hand side, and if so, returns TRUE, otherwise returns FALSE.
=Checks to see if the value on the left hand side of the operator is the same as the value on the right hand side, and if so, returns TRUE, otherwise returns FALSE.

Table of Contents