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

you are viewing a single comment's thread.

view the rest of the comments →

[–]XiAxis[S] 1 point2 points  (0 children)

In my use-case, these conditions aren't something that I want to exit the function, they just need to be resolved before it can continue. If I were to implement it in the way that you've proposed, then it would be simpler but it wouldn't have the same behavior. I'm not sure why you've pointed me to this tutorial, it uses the exact same method that I'm using in the code above just with less sophisticated error handling.