开发者

Classic ASP "or" keyword

开发者 https://www.devze.com 2023-02-19 10:35 出处:网络
I was just wondering - is the or keyword exclusive? I mean like given the following: if x or y then Would this return true if both开发者_开发问答 x and y were true? Or is it that one or the other

I was just wondering - is the or keyword exclusive?

I mean like given the following:

if x or y then

Would this return true if both开发者_开发问答 x and y were true? Or is it that one or the other but not both has to be true to execute the code inside the if?


The standard OR operator is NOT exclusive: True or True gives True.

0

精彩评论

暂无评论...
验证码 换一张
取 消