If i understood you correctly you wish to see an example of a switch being implemented in if-else methods.
If you're trying to decide which is better, know that in practice, they function almost...