I have a question about if - else structure in a batch file. Each command runs individually, but I couldn\'t use \"if - else\" blocks safely so these parts of my programme d
here is how I handled if else if situation
if %env%==dev ( echo "dev env selected selected" ) else ( if %env%==prod ( echo "prod env selected" ) )
Note it is not the same as if-elseif block as the other programming languages like C++ or Java but it will do what you need to do