Lowdefy
v3.23.3/Operators/_gt/

_gt

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

The _gt operator tests if the first value is greater than the second equal. It takes an array of two values to test.

The _gt operator tests using the javascript greater than operator. You can find a description of the algorithm used to compare two values here.

Arguments

array

An array of two values to compare.

Examples

Two numbers:
_gt:
  - 4
  - 3

Returns: true

_gt:
  - 1
  - 1

Returns: false

_gt:
  - _sum:
      - 3
      - 4
  - 8

Returns: false

Two strings:
_gt:
  - "a"
  - "b"

Returns: false