If the Collection (List, Bag or Set) is empty, the result of the formula given with the argument block is returned.
ifEmpty(Block block) | |||
---|---|---|---|
Argument | Block | block | Formula, which returns an alternative result. |
Return value | Boolean |
Formula | Result |
---|---|
=List{}.ifEmpty(List{'default')) | [default] |