Sign in to follow this  
Followers 0
h711

Is there a way to exit a function (not the whole script)?

3 posts in this topic

I have a script that made by a number of functions. At some point, when condition met, I need the script to exit a function and return to main. If I use "exit", it will exit the whole script. This is not what i need.

Any ideas? Thanks!

Share this post


Link to post
Share on other sites



Thanks! I didn't know that return also serve as function exit, lol.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0