function exeC(func)
func()
end
while true do
for i = 1, 10 do
LO()
local L = "L"
local N = i-1
local LN = L..N
local LNf = LN.."()"
wait(0.01)
print(LNf) -- Used in checking...
exeC(LNf)
wait(0.99)
end
end
What I wanted to happen is to call a function with the use of arithmetic. I find it messy to call a function with lots of if statements (Assigning i value to each function). I have functions named L0 - L9. Is it possible to call a function with arithmetic to match the function's name? e.g (L0 : "L"..[i], i = 0)
I would appreciate your response/answer/help.

1 comment
I know how to use tables but I did not know that it could work like this. Thank you for sharing this cool piece of knowledge!