Oh god my eyes D:
I would HIGHLY suggest using something like a switch/case statement. Even a series of If/ElseIf/Else would be more manageable than that. There is no reason at all to use such ugly, hard to understand, and hard to manage, code. If you were to ever return to that code at a later date, you'd find yourself looking at something that looks like a whole lot of nothing. Trust me. I've made the mistake of going "Hey, I can make this really short, and all work in one statement!" before. Too bad the next time you look at it, your mind decides it doesn't want anything to do with that code.
That is quite possibly the worst way to go about solving that problem. That code is bad enough I'm not even going to try to rewrite it for you.