Switch Cases in Lua
Switch Cases for everyone!
Yes, I have done something many other people on the internet have done. I added the switch case thingies to the Lua Programming language. This will prevent the "Too many syntax levels" error in 99.9% (not guaranteed) of cases.
The code is there to be replicated for all your Lua based projects and should work in any project that doesn't already have an overflow of if-else ladders (Yes, I tried to refactor luagame already)