Start small, and see what is going on.
I created a small BAT file:
@echo off
:Loop
set /P var=Hit 1 for Yes. 2 for No, 3 to exit:
if %var%==1 echo Yes
if %var%==2 echo No
if %var%==3 exit
goto Loop
When I run it, each time I press 1, it prints "Yes".
If I press 2, it print "No"
If I press 3, it exits.
All you have to do is remove your quotes and add a
main
label.