Equals | Mastock Help

Short Name: ==

Definition: Represent a logical test operation

Usage: object1 == object2

Objective:
  • Execute a comparison of values or arrays
  • Return YES if object1 is equal to object2
  • 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:
  • 1 == 2 always return NO
  • 1 == 1 always return YES
  • open == close returns an array where each value is either yes or no, depending on each open and close values
  • open == 1000 returns an array where each value is either yes or no, depending on each open value