您的位置:首页 > 编程语言 > Lua

lua and or not

2017-08-22 13:10 211 查看
function Test(b1,b2)

if(b1 and b2) then

print("and ")

end

if(b1 or b2) then

print("or")

end

if(not(b1 and b2)) then

print("not")

end

end

 Test(false,true)

result: or not
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: