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
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
相关文章推荐
- lua and or not 逻辑运算符
- 逻辑操作符---Lua: and,or,not 对比 C++:&&,||,!
- lua 之 and or not
- lua 逻辑运算 and, or, not【转】
- lua and or not 逻辑运算符
- lua and or not 逻辑运算符
- python中运算符and、or、not
- LUA中的and与or
- 简单shiro扩展实现NOT、AND、OR权限验证
- AFNetworking 关于JSON text did not start with array or object and option to allow fragments not set
- Simple ASP.NET 2.0 Tips and Tricks that You May (or may not) have Heard About [from internet]
- Starting sshd: /var/empty/sshd must be owned by root and not group or world-writable.
- lua中逻辑运算符and与or的用法
- sql关系型运算符优先级高到低为:not >and> or
- AFNetworking 报错 JSON text did not start with array or object and option to allow fragments not set
- 数据更新:updata 逻辑运算符的优先等级问题 not>and>or 删除一个表中的内容 约束
- (32位汇编 五)mov/add/sub/and/or/xor/not
- error: start and/or end address not on sector boundary解决
- struts2.x 的提交表单出现 Could not create and/or set value back on to object
- 逻辑 与 或 非的优先级(and or not 优先级)