-
Notifications
You must be signed in to change notification settings - Fork 0
Integer Predicate
Provi edited this page Jul 22, 2026
·
1 revision
Integer Predicates are used to test the values of integer numbers and check if they fall within a specific range.
| Field | Type | Default | Description |
|---|---|---|---|
| Comparison | Comparison | The type of comparison to perform. See list for more details. | |
| compare_to | Integer | The value to query against. | |
| second_compare_to | Integer | optional | A second value to query against, only used by certain comparison types. |
Each comparison type is referenced by its name as a string and represents a different type of test to perform between your input and a query parameter or two.
If your input is x, and your parameters are y and z:
-
"EQUALS"x == y
-
"GREATER_THAN"x > y
-
"GREATER_THAN_OR_EQUAL_TO"- "x >= y"
-
"LESS_THAN"x < y
-
"LESS_THAN_OR_EQUAL_TO"x <= y
-
"INCLUSIVE_RANGE"-
x >= yandx <= z
-
-
"EXCLUSIVE_RANGE"-
x > yandx < z
-
This example tests if the input value (such as an IV or Friendship) is greater than 5.
{
"comparison": "GREATER_THAN",
"compare_to": 5
}This example tests if the input value is between 2-20 (inclusive).
{
"comparison": "INCLUSIVE_RANGE",
"compare_to": 2,
"second_compare_to": 20
}