When should I use
else statements? When should I use
switch statements when you have more simple, albeit many cases/conditions, and/or your conditions to check are fixed values. Consider using
else statements when your logic requires more complex conditions to check and/or when the conditions to check will evaluate to a boolean.