Can I turn this into a switch statement?

Printable View