starts with
FEEL built-in function · FEEL string functions
starts with(string, match)
Returns true if the string begins with match.
Parameters
| Parameter | Type | Description |
|---|---|---|
| string | string | the string to test |
| match | string | the expected prefix |
Examples
starts with("foobar", "fo")
true
Try it ↑
Edge cases and null handling
starts with("foobar", "")
true
Try it ↑
starts with(null, "a")
null
Try it ↑
Part of FEEL string functions: the rules all of them share, string concatenation, regex pitfalls and every function side by side.
Related functions
Defined by the OMG DMN 1.6 specification, chapter 10.3.4 (built-in functions).