質問

Like in some languages, you can add brackets to specify code. Is there something which I can do in Lua to split sections of my code up similar to the example below?

{
    //Code
}
役に立ちましたか?

解決

Yes, you can create a scope with do ... end

do
   -- Code
end
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top