Adding switch-case for lua
Is your feature request related to a problem? Please describe (REQUIRED):
This idea comes from a worry that the significant use of elseif statements will affect the stability and performance of my game, while I know how to implement switch-case in vb, the lack of it here is infuriating
Describe the solution you’d like (REQUIRED):
What I am asking for is the implementation of switch-case as feature into the lua scripter, while their are other alternatives, (like building a table) or the switch function, most of what I have seen is quite incomprehensible for a relatively amateur coder such as myself
Describe alternatives you’ve considered (REQUIRED):
if not exactly switch case, a way to optimize coding else if statement that bypasses going through every individual elseif in some capacity would help immensely