instance of
FEEL language construct
value instance of type
Runtime type test against a FEEL type name: number, string, boolean, date, time, date and time, days and time duration, years and months duration, list, context, or a parameterized type such as list<string>. Useful as a guard before arithmetic, since FEEL yields null rather than an error on a type mismatch.
Syntax elements
| Element | Type | Description |
|---|---|---|
| value | any | the value to test |
| type | type name | a FEEL type, optionally parameterized (list<string>) |
Examples
1 instance of number
true
Try it ↑
["a"] instance of list<string>
true
Try it ↑
date("2026-01-01") instance of date
true
Try it ↑
"x" instance of number
false
Try it ↑
Related constructs
null and error propagation · if … then … else
Related functions
Defined by the OMG DMN 1.6 specification, chapter 10.3 (the FEEL grammar and semantics).