I use a general rule that if the options am supposed to handle exceeds three i use a switch otherwise i use an if statement. Switch was specifically made for such situations.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I use a general rule that if the options am supposed to handle exceeds three i use a
switch
otherwise i use anif
statement.Switch
was specifically made for such situations.