lua 5 流程控制 if
条件判断中,0 表示 true,只有 nil 才是 false
if(0) then -- 可以没有括号
    print("0 为 true")
elseif 1 then
    print("1")
else
    print("else")
end
参考:
http://www.runoob.com/lua/lua-decision-making.html
条件判断中,0 表示 true,只有 nil 才是 false
if(0) then -- 可以没有括号
    print("0 为 true")
elseif 1 then
    print("1")
else
    print("else")
end
参考:
http://www.runoob.com/lua/lua-decision-making.html
