lua and or not

来源:互联网 发布:矢量 软件 编辑:程序博客网 时间:2024/06/04 01:02
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