Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在单行中执行 AND 语句的简单方法是什么?
example: if %turn2%== 1 and if %ttt1%== 1 set ttt1=X
没有AND,AFAIK。为了确保满足这两个条件,只需将它们一个接一个地放置:
AND
REM The next line echos if "1"=="1" if "2"=="2" echo Equal REM This one does not if "1"=="1" if "2"=="3" echo Equal again