EngineHub / EngineHub/CommandHelper
Add tryelse()
Open
feature request
good first issue
- Dominant language
- Java
- Stars
- 128
- Forks
- 70
- PR merge metrics
- No merged PRs in 30d
Description
Add a function tryelse, which accepts two statement, trying the first one, and returning it if successful, otherwise, returning the else.
```
string @a = tryelse(functionThatThrows(), 'default');
```
If scream-errors is true, the exception will still be logged.
Contributor guide
Assessment
This issue has not been assessed yet.