What is the OR operator in an IF statement

前端 未结 11 832
轮回少年
轮回少年 2020-12-14 05:50

In C#, how do I specify OR:

if(this OR that) {do the other thing}

I couldn\'t find it in the help.

Update:

11条回答
  •  旧巷少年郎
    2020-12-14 06:45

    hopefully you would have got an idea by now.if intrested you can also have a look at the c# specification at http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-334.pdf

提交回复
热议问题