How to reduce number of characters needed in an IF statement OR operator?

后端 未结 0 412
陌清茗
陌清茗 2020-12-03 10:32

Is there a way to reduce the need to use the same variable over and over in an if statement operator?

For example:

if(value == 10 || value == 11 || val         


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