Or
 

Short Name: |

Definition: Represent a “OR” combination of two logical test operations

Usage: test1 | test2

Objective:
  • Execute a logical OR operation
  • Return YES if either test1 and test2 are YES
  • Returns a scalar value or an array of values.

Note:
  • Return value depends on the operands. If one of the operand is an array, then returns an array

Examples:
  • NO | NO always return NO
  • YES | NO always return YES
  • (open > 1000) | (close < 1500) returns an array where each value is either yes or no, depending on each open and close values