Is it possible to have an if then command check for multiple variables, instead of just one

后端 未结 0 1394
时光说笑
时光说笑 2020-11-29 13:49

Essentially, can you achieve this:

if %num1% == 1 echo hi
if %num1% == 2 echo hi
if %num1% == 3 echo hi

In a simpler way such as:



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