Quick Reference
| Mode | Suggested Label | Description |
|---|---|---|
| Between | "1 – 10" | A specific range of values |
| At least | "At least 5" | Values greater than or equal to N |
| At most | "At most 100" | Values less than or equal to N |
| Exactly | "Exactly 42" | A single specific value |
Need more flexibility? If the predefined modes don't cover your use case, you can write custom expressions using our integer range algebra.
Between
Captures all integers from a minimum to a maximum value (inclusive).
Examples:
- "1 – 10" → All integers from 1 to 10
- "0 – 100" → All integers from 0 to 100
- "-5 – 5" → All integers from -5 to 5
Use case: Scoring ranges, age groups, quantity brackets.
At Least
Captures all integers greater than or equal to a threshold.
Examples:
- "At least 1" → 1, 2, 3, ... (all positive integers)
- "At least 100" → 100, 101, 102, ...
- "At least 0" → All non-negative integers
Use case: Minimum requirements, thresholds, floor values.
At Most
Captures all integers less than or equal to a threshold.
Examples:
- "At most 10" → ..., 8, 9, 10
- "At most 0" → All non-positive integers
- "At most 100" → Anything up to 100
Use case: Maximum limits, caps, ceiling values.
Exactly
Captures a single specific integer value.
Examples:
- "Exactly 0" → Only the value 0
- "Exactly 42" → Only the value 42
- "Exactly -1" → Only the value -1
Use case: Precise matching, sentinel values, specific states.
Custom Expressions
When the predefined modes don't fit your needs, you can write custom integer range expressions.
Basic Syntax
An integer range expression defines a start and end boundary:
<start> ... <end>
The ... operator means the end is exclusive (up to but not including). Use .. for an inclusive end (up to and including).
Special Values
| Value | Meaning |
|---|---|
-Inf |
Negative infinity (no lower bound) |
+Inf |
Positive infinity (no upper bound) |
Expression Examples
| Mode | Expression |
|---|---|
| Between 1 and 10 | 1 ... 11 |
| At least 5 | 5 ... +Inf |
| At most 100 | -Inf ... 101 |
| Exactly 42 | 42 ... 43 |
| All integers | -Inf ... +Inf |
Tips
-
Exclusive vs Inclusive: Use
...(exclusive) for most ranges. The builder automatically adjusts bounds to match your intent. Use..(inclusive) when you want the end value included explicitly. -
Negative numbers: Negative integers work just like positive ones. For example,
-10 ... 0captures -10 through -1. -
Preview: The expression preview shows the resolved range, so you can verify your expression captures the intended values.