Why do i not get an mps error?


no_return.png


As one can see above, i have forgotten a return statement in the second if(). The current statement does not lead to an error - should n t it be one?

I already stumbled over forgetting the return statement a couple of times ...

What do you think?
Dan
1 comment
Comment actions Permalink
By default the last statement is used for return. In your case that is "null". Delete that "null;" and you might get an error.
0

Please sign in to leave a comment.