$gte

$gte operator lets you evaluate greater than or equal to between 2 values to be compared. You can use this in any Conditional Objects.

Syntax

{
    <key>: {
        "$gte": <value>
    }
}

Properties

Field
Description
Required

<key>

The key which needs to be compared with the value. This can also be a Magical Autocomplete.

true

<value>

The value to compare the <key> with. This can also be a Magical Autocomplete.

true

Examples

Let's say we have declared a variable age in our API flow, which has a value of 25 currently.

{
    "$.variables.age": {
        "$gte": 20
    }
}

The above expression would resolve to true.

Last updated