set a="3" if %a% == "1" ( echo 1 ) else if %a% == "2" ( echo 2 ) else ( echo 3 )