Switch expression statement for Lua
$ luarocks install lua-switch
This package provides simple function named "switch" which could be used to emulate switch statement which does not exist in Lua but does in other languages. It also can handle default fallback.
root