Lowdefy
v3.17.2/Operators/_ne/

_ne

([value1: any, value2: any]): boolean

The _ne operator tests if two values are not equal. It takes an array of two values to test.

The _ne won't do a deep comparison.

Arguments

array

An array of two values to compare.

Examples

Two non-equal strings:
_ne:
  - "Hello"
  - "Hello you"

Returns: true

Two equal strings:
_ne:
  - "Hello"
  - "Hello"

Returns: false

Two numbers:
_ne:
  - _sum:
      - 3
      - 4
  - 8

Returns: true

Arrays are not compared deeply:
_ne:
  - [1,2,3]
  - [1,2,3]

Returns: true

Values from "getter" operators are copies and not equal:
_ne:
  - _state: my_object
  - _state: my_object

Returns: true