FEEL unary tests and ranges
FEEL language guide · 4 constructs · DMN 1.6
A FEEL unary test is the content of a DMN decision table input cell. The cell value is matched against the column's input: [18..65) matches 18 up to but not including 65, "gold", "silver" matches either string, and not(< 10) matches 10 or more. An empty cell, or -, matches anything.
A unary test has no value on its own, so to check a cell outside the table, write the input in front of it with in: 17 in 18..65) gives false. The [range functions compare two ranges with each other.
| Construct | Syntax |
|---|---|
| unary tests (decision table cells) | < 10 · [1..10] · 1, 2, 3 · not(1, 2) |
| range / interval | [a..b] · (a..b) · [a..b) |
| in | value in list · value in range · value in (test, test) |
| between … and | value between low and high |
Unary tests: what goes in a decision table cell
A decision table input entry is not a full expression but a unary test: the input value is implicit, so the cell contains only the condition. An empty cell always matches. Because a unary test has no standalone value, test one here by making the implicit input explicit with the in operator.
< 10 · [1..10] · 1, 2, 3 · not(1, 2)
| Element | Type | Description |
|---|---|---|
| comparison | unary test | < 10, >= 5, and so on; the input is implicit |
| range | unary test | [1..10], (0..100] |
| alternatives | unary test | comma-separated values, matching any of them |
5 in (< 10)
5 in [1..10]
5 in (1, 3, 5)
not(5 in (1, 2))
Related: in · range / interval · comparison and boolean operators · not · list contains
range / interval
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.
[a..b] · (a..b) · [a..b)
| Element | Type | Description |
|---|---|---|
| a | number, date, time or duration | start endpoint |
| b | same type as a | end endpoint |
[1..10]
(1..10]
5 in [1..10]
10 in [1..10)
date("2026-07-15") in [date("2026-07-01")..date("2026-07-31")]
Related: in · unary tests (decision table cells) · between … and · before · after · during · includes
in: test a value against a list, range or unary test
in tests whether a value matches a unary test. The right-hand side is a positive unary test: a list, a range, a comma-separated set of alternatives, or a comparison. This is the construct that turns a decision table unary test into an ordinary boolean expression, which is how you verify a table cell outside the table. in has the same precedence as between and the comparison operators, and they group from left to right.
value in list · value in range · value in (test, test)
| Element | Type | Description |
|---|---|---|
| value | any | the value being tested |
| test | unary test | a range, a list, alternatives, or a comparison |
5 in [1..10]
5 in (3, 5, 7)
"b" in ("a", "b", "c")
5 in [1,2,3]
Related: unary tests (decision table cells) · range / interval · between … and · list contains
between … and: test if a value is in a range
between tests whether a value lies in an inclusive range, equivalent to value >= low and value <= high and to value in [low..high]. It reads closer to natural language than either, which is why it is common in business-authored literal expressions. between, in and the comparison operators share one precedence level and group from left to right, so 5 between 1 and 10 = true reads as (5 between 1 and 10) = true and gives true. To use and or or inside a bound, put the bound in parentheses.
value between low and high
| Element | Type | Description |
|---|---|---|
| value | comparable | the value to test |
| low | comparable | lower bound, included |
| high | comparable | upper bound, included |
5 between 1 and 10
10 between 1 and 10
date("2026-07-15") between date("2026-07-01") and date("2026-07-31")
5 between 1 and 10 = true
Related: range / interval · in · comparison and boolean operators
Related guides
Every result on this page was computed by the Impulse FEEL engine 0.9.1, the interpreter that runs the playground. Last updated .
Defined by the OMG DMN 1.6 specification, chapter 10.3 (the FEEL grammar and semantics).