有没有办法说类似的话
if %1 == 1 or %1 == 2
在批处理文件中?或者,如果我可以指定一组候选值,例如
if %1 in [1, 2, 3, 4, ... 20]
事实证明“and”很简单——只是不是你期望的语法:
这3个例子就说明了这一点。
换句话说: If 1==1 AND 2==2 then echo "hello"
if 1==1 echo hello
hello
if 1==1 if 2==2 echo hello
hello
if 1==1 if 2==1 echo hello
(nothing was echoed)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)