Error handling inside function

I have done error handling inside function but i want to skip lines after error handling block and directly come out of function block. How to execute this?


You can do that through labels.

Take a look here:

As I am saying in the guide, think of labels as wormholes.
By utilizing them we can “jump” to any point in our script.
They can be really useful but you have to be very careful when using them because they might make your scripts hard to read thus confusing and hard to maintain.

Best regards,

1 Like