简体   繁体   English

我可以使用哪个逻辑运算符来满足我的条件?

[英]which Logical operator i can use to meet my criteria?

I have a scenario where my result of logical operation to achieve 我有一个场景,我的逻辑运算结果要实现

True <op> true - true
False <op> true - false
True <op> false - true
False <op> false - true

Any ideas for 任何想法

There are a few ways to achieve this; 有几种方法可以做到这一点。 here is one: 这是一个:

a || (a == b)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM