"Try catch finally" function available?

Hi!

Is there a no/low code friendly way to apply a ‘try catch finally’ function in Weweb?

I’m asking for a friend, my webapp never bugs :slight_smile:

In all seriousness, it takes quite a detour (with conditional filtering) to imitate this function - causing unnecessary complication in my webapp.

Thanks!

There is the error path for workflows you can use but its not a useful as the try catch methods.

Thank you @sam1 !

And what about formulas when binding a value? That field allows for ‘Javascript’ and ‘Formulas’ →

I see this example on the w3schools.com in Javascript, is it possible to translate this into the Formulas-field?

yeah you can do that

try{
    return x+y;
}catch (err) {
    return err
}

bind this to a text and see what happens

2 Likes

Hi @sam1 ,

Thanks for this! This function works in the Javascript field, but - since that’s out of my league - it would be amazing if the Weweb editor is able to translate this into its Formulas field. I tried it, but it didn’t recognize. I’ll submit a feature request.