Returns the result of the formula given with the argument block if one of the following conditions is met:
- The receiver is null.
- The receiver is an empty collection or map.
- An error occurred while determining the receiver.
ifEmptyNullOrError(Block block) | |||
---|---|---|---|
Argument | Block | block | Formula, which returns an alternative result. |
Return value |
Formula | Result |
---|---|
=List{}.ifEmptyNullOrError(List{'default'}) | [default] |