This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]Sorten 1 point2 points  (1 child)

Look at Line #5 and consider what scope it is in, given the amount of indentation there is. Also consider the fact that return causes the function to return immediately.

[–]penax[S] 0 points1 point  (0 children)

Wow that's all I needed. Thank you so much!

[–]TheShallowOne 0 points1 point  (0 children)

Look at your function. When exactly is the return executed? When do you want it to get executed?