Categories
Stop a function from within?
Function_1 calls function_2, how to make function_2 stop function_1? I stop the function with an error (i.e. calling a non-existent "exit()" function)
Answer the question
In order to leave comments, you need to log in
return the value from f2, check it in f1 and exit if it meets the exit condition. Or throw yeksepshyn.
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question