Lowdefy
v3.23.3/Operators/_eq/

_eq

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

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

The _eq operator tests for strict equality, and won't do a deep comparison.

Arguments

array

An array of two values to compare.

Examples

Two strings:
_eq:
  - "Hello"
  - "Hello"

Returns: true

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

Returns: false

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

Returns: false

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

Returns: false