I attempted to create a similar Switch Case Method, as a Module but for lua, any tips?

i meant to place it here but I wrote it here,
I tried creating a switch-case method module

Theres no need for switch cases in lua
If you need them youre doing something wrong

It would be nice to have switch case in Lua instead of many if statements to recreate fall-through.

if you have many if statements theres probably something wrong with your structure to be honest

I attempted to aim at reducing/removing the structure of basic if-else-if statements you might encounter while programming

reducing the need to if-elseif-elseif-elseif etc…of course depending on a users programming logic but I tried my best :sweat_smile: