SyntaxFix
Write A Post
Hire A Developer
Questions
If you are switching on the value of a single variable then I'd use a switch every time, it's what the construct was made for.
Otherwise, stick with multiple if-else statements.