Or

From MultiCharts
Jump to navigation Jump to search

A logical (Boolean) operator that returns True if one or both of its operands are true. Logical operators are used in logical (Boolean) expressions that operate with true/false values.

Usage

E1 Or E2

Where:

E - true/false expressions.

Notes

  • If one of the true/false expressions evaluates to True, the whole expression is evaluated as true due to the or logical operator. For example:
(10 > 1) or (10 > 20)
Will evaluate to True since the first expression is true, even though the second expression (10 > 20) is false.
  • The whole expression is evaluated as true if only one of the individual expressions evaluates to true. For example:
(10 > 100) or (100 < 2000) or (21 = 1)
Will evaluate to True since the second expression (100 < 2000) is indeed true.
  • See And for logical and true/false expressions.

Examples

2 = 1 Or 2 > 2

Will return a value of False.

True Or False Or False

Will return a value of True.