Lua中for循环如何中断或跳出?
- 内容介绍
- 文章标签
- 相关推荐
本文共计330个文字,预计阅读时间需要2分钟。
我有以下代码段:javascriptfor(k,v in pairs(temptable)) do if string.match(k, 'doe') then if v[name]==var2 then txterr=Invalid name for .. k .. duplicate=true end endend当`duplicate`设置为`true`时,我想一起退出。
本文共计330个文字,预计阅读时间需要2分钟。
我有以下代码段:javascriptfor(k,v in pairs(temptable)) do if string.match(k, 'doe') then if v[name]==var2 then txterr=Invalid name for .. k .. duplicate=true end endend当`duplicate`设置为`true`时,我想一起退出。

