A way to write switch-case statements in lua.