22.02.2018, 00:42
Quote:
From my silly experince.
Don't return break all incoming values and cancel all perivous action? unless you didn't control it with conditional (if) may i ask you to try it without if it works ? |
Furthermore, a return does stop the current function from executing but it does NOT cancel any previous actions. That's impossible.
Also, OP said it didn't run further than print("2"), then how would the return play a role?
If code does not continue to run without the use of return, break or continue (which were not used anywhere near the print "2") there are most likely only 2 causes:
- An error that stops the execution for good reasons (most likely Array index out of bounds)
- An Infinite Loop
Since there is no loop, you must look for an error.
If you have crashdetect, see crashs.log. If you don't, install it and you will see where and what error occured.