I wonder if there is a simple way to branch execution in a Windows batch file depending on the value of one single expression. Something akin to switch/case blocks in C, C++
This is simpler to read:
IF "%ID%"=="0" REM do something IF "%ID%"=="1" REM do something else IF "%ID%"=="2" REM do another thing IF %ID% GTR 2 REM default case...