range / interval
FEEL language construct
[a..b] · (a..b) · [a..b)
A range is a first-class value describing an interval. Square brackets include the endpoint, parentheses exclude it, so half-open intervals like [0..100) are expressible directly. Ranges work over numbers, dates, times and durations, are testable with the in operator, and are the value behind most decision table unary tests.
Syntax elements
| Element | Type | Description |
|---|---|---|
| a | number, date, time or duration | start endpoint |
| b | same type as a | end endpoint |
Examples
[1..10]
[1..10]
Try it ↑
(1..10]
(1..10]
Try it ↑
5 in [1..10]
true
Try it ↑
10 in [1..10)
false
Try it ↑
date("2026-07-15") in [date("2026-07-01")..date("2026-07-31")]
true
Try it ↑
Related constructs
in · unary tests (decision table cells) · between … and
Related functions
before · after · during · includes
Defined by the OMG DMN 1.6 specification, chapter 10.3 (the FEEL grammar and semantics).