CMD(BAT) IF 判斷式 OR / AND 運算
CMD(BAT) IF 判斷式 OR / AND 運算
資料來源: https://stackoverflow.com/questions/2143187/logical-operators-and-or-in-dos-batch
AND
if %age% geq 2 ( if %age% leq 12 ( set class=child ) )
OR
set res=F if %hour% leq 6 set res=T if %hour% geq 22 set res=T if "%res%"=="T" ( set state=asleep )