Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Lua recursion with function
--lua 5.3 print ("Hello, Nel! \n") n = 0 function preloop() local num = n while(n<5)do --if n <5 then next step will cause recursion. when n == 5, the current step will skip recursion print("Creating recursion on n == "..n) n=n+1 preloop() --call self again end print("n: "..n..", local num: "..num) end preloop()
run
|
edit
|
history
|
help
0
Lua stuff
Basic class example
Creating habits v3, Lua
Conta valores acima da média - LUA
ok
1
Roots without the math library in Lua
ROBLOX Ui Play Button
Dirty Bag 'o Tokens Maker
Volume of sphere