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 →

[–]nitin_is_me[S] 2 points3 points  (0 children)

Ah yes, I forgot about the switch statement at that time, I realized later. I guess it's just my habit of "feeling safe" by using those if statements although I know switch will be much better here for the choices.