Skip to content

Add tryelse() #1196

@LadyCailin

Description

@LadyCailin

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestNew functionality that doesn't exist yetgood first issueWanna take a stab at contributing? Try this one! Should be easier than most.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions