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.

ConstructSyntax
unary tests (decision table cells)< 10 · [1..10] · 1, 2, 3 · not(1, 2)
range / interval[a..b] · (a..b) · [a..b)
invalue in list · value in range · value in (test, test)
between … andvalue 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)

ElementTypeDescription
comparisonunary test< 10, >= 5, and so on; the input is implicit
rangeunary test[1..10], (0..100]
alternativesunary testcomma-separated values, matching any of them
5 in (< 10)
returns true Try it ↑
5 in [1..10]
returns true Try it ↑
5 in (1, 3, 5)
returns true Try it ↑
not(5 in (1, 2))
returns true Try it ↑

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)

ElementTypeDescription
anumber, date, time or durationstart endpoint
bsame type as aend endpoint
[1..10]
returns [1..10] Try it ↑
(1..10]
returns (1..10] Try it ↑
5 in [1..10]
returns true Try it ↑
10 in [1..10)
returns false Try it ↑
date("2026-07-15") in [date("2026-07-01")..date("2026-07-31")]
returns true Try it ↑

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)

ElementTypeDescription
valueanythe value being tested
testunary testa range, a list, alternatives, or a comparison
5 in [1..10]
returns true Try it ↑
5 in (3, 5, 7)
returns true Try it ↑
"b" in ("a", "b", "c")
returns true Try it ↑
5 in [1,2,3]
returns false Try it ↑

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

ElementTypeDescription
valuecomparablethe value to test
lowcomparablelower bound, included
highcomparableupper bound, included
5 between 1 and 10
returns true Try it ↑
10 between 1 and 10
returns true Try it ↑
date("2026-07-15") between date("2026-07-01") and date("2026-07-31")
returns true Try it ↑
5 between 1 and 10 = true
returns true Try it ↑

Related: range / interval · in · comparison and boolean operators

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).