N
N
nonamich2017-07-13 16:50:12
css
nonamich, 2017-07-13 16:50:12

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

1 answer(s)
E
evnuh, 2017-07-13
@evnuh

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 your question

Ask a Question

731 491 924 answers to any question