Home Search

DriveWorks Solo 21
Or

Send Feedback

Or

Determines if any of the specified logical expressions are true.

Syntax

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

Where:

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.