How to format switch/case?

8 posts were split to a new topic: More universal and can work with any number of variables without changing much code