Skip to content

Comparison Operators

This feature allows you to compare two values using various operators.

Available Operators

OperatorDescription
==Equal to
!=Not equal to
>Greater than
>=Greater than or equal to
<Less than
<=Less than or equal to

INFO

The syntax works similar to fall mark, comparison is always the last operation.


Sample Data

json
{
  "age": 25,
  "height": 175
}

Queries

ts
// Check if age is greater than 18
query.run("$.age > 18") // true

// Check if height is less than or equal to 150
query.run("$.height <= 150") // false

WARNING

The comparing value should be a number.