简体   繁体   中英

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)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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