lua goto语法
2018-06-07 本文已影响154人
勇于改变
goto语句将程序的控制点转移到一个标签处
local a = 1
::label:: print("this is goto label")
a = a+1
if a < 3 then
goto label
end
goto语句将程序的控制点转移到一个标签处
local a = 1
::label:: print("this is goto label")
a = a+1
if a < 3 then
goto label
end