C# how many brackets do you need for an if x or y statement?

后端 未结 0 1790
甜味超标
甜味超标 2020-11-28 05:19

If I have an if statement, like so, that is fully fuctional;

if (condition1 == 1 || condition2 == 2)

Why do so many people do it like this? Is the

相关标签:
回答
  • 消灭零回复
提交回复
热议问题