$lt

$lt operator lets you evaluate less than between 2 values to be compared. You can use this in any Conditional Objects.

Syntax

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

Properties

FieldDescriptionRequired

<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 20 currently.

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

The above expression would resolve to false.

Last updated