local i = 0
local a = 10
local b = 9
if (a > b) or (i == 1) then
print("或运算为 真") --
else
print("或运算为 假")
end
print("i = " .. i) -- i = 0
i = 0
if (a < b) and (i == 1) then
print("与运算为 真")
else
print("与运算为 假") --
end
print("i = " .. i) --i = 0
local a = 10
local b = 9
if (a > b) or (i == 1) then
print("或运算为 真") --
else
print("或运算为 假")
end
print("i = " .. i) -- i = 0
i = 0
if (a < b) and (i == 1) then
print("与运算为 真")
else
print("与运算为 假") --
end
print("i = " .. i) --i = 0