isok = false;
--邏輯運算符
--規定nil為false
--print( ms and isok)
--print(4 and 5)
--print (false and 13)
--print(false and 13)
--a or b a為true 返回a 否則返回b
--print (4 and 5)
--print(4 or 5)
--三目運算符
print((isok and 4) or 5)
isok = false;
--邏輯運算符
--規定nil為false
--print( ms and isok)
--print(4 and 5)
--print (false and 13)
--print(false and 13)
--a or b a為true 返回a 否則返回b
--print (4 and 5)
--print(4 or 5)
--三目運算符
print((isok and 4) or 5)
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。