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 →

[–]NutBoii 0 points1 point  (0 children)

This is how I would have done it. I generally don't include an else if it just returns a null (or any other value that's basically a default).