What is the advantage of commas in a conditional statement?

后端 未结 7 1719
醉酒成梦
醉酒成梦 2021-02-03 17:25

We can write an if statement as

if (a == 5, b == 6, ... , thisMustBeTrue)

and only the last condition should be satisfiable to ent

7条回答
提交回复
热议问题