Script: Different | 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 different from 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 YES
  • 1 != 1 always return NO
  • 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