CommandHelper icon indicating copy to clipboard operation
CommandHelper copied to clipboard

Add tryelse()

Open LadyCailin opened this issue 5 years ago • 0 comments

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.

LadyCailin avatar May 27 '20 08:05 LadyCailin