orElse<T, R>(previous: TryResult<T>, orElse: () -> R): T | R
Returns the result of the orElse argument if the previous argument to
try fails. Otherwise, the function returns the value of the previous
argument.
Introduced in DataWeave version 2.2.0.
Parameters
| Name | Description |
|---|---|
|
Result from a previous call to |
|
Argument to return if the |