Skip to content

Commit b362d35

Browse files
saig0github-actions[bot]christinaausley
authored
feat(feel): Add new built-in function is blank() (#4771)
* feat(feel): Add new built-in function `is blank()` Add documentation for the new string built-in function `is blank()`. * style: Auto-format Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * remove i.e. --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: christinaausley <[email protected]>
1 parent 2e28756 commit b362d35

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

docs/components/modeler/feel/builtin-functions/feel-built-in-functions-string.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,3 +392,28 @@ to base64(value: string): string
392392
to base64("FEEL")
393393
// "RkVFTA=="
394394
```
395+
396+
## is blank(string)
397+
398+
<MarkerCamundaExtension></MarkerCamundaExtension>
399+
400+
Returns `true` if the given string is blank (empty or contains only whitespaces).
401+
402+
**Function signature**
403+
404+
```feel
405+
is blank(string: string): boolean
406+
```
407+
408+
**Examples**
409+
410+
```feel
411+
is blank("")
412+
// true
413+
414+
is blank(" ")
415+
// true
416+
417+
is blank("hello world")
418+
// false
419+
```

0 commit comments

Comments
 (0)