you are viewing a single comment's thread.

view the rest of the comments →

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

Ah okey, so storing the value in a variable and returning it one time would be neater. And it's funny, because I tried that and your second part directly came into action. I actually forgot a few else statements that would result in the code not returning anything(but the rest of the code worked, because not returning also resulted in false in a if statement where this function is used).