Board Thread:Support Requests - Getting Technical/@comment-4738639-20140820163736/@comment-1997905-20140824022459

I would highly recommend putting each switch case on its own line. It makes it easier to follow your code, see errors, keep track of braces, etc.

For example, if I try to expand your code:

The  comes from an   outside the. You also appear to be switching the argument, which I don't think you can do.