I'm programming and I'm having an issue.
if exist savefile.climax (
echo It appears you have one...
echo Checking your data...
(
set /p name=
set /p level=
)<savefile.climax
) else (
echo Oh man, you don't have one.
echo Would you like to create it?
choice /c yn /n /m "[Y]es or [N]o?"
if %errorlevel% == 1 goto creation
if %errorlevel% == 2 exit
)
And as you can see, if the errorlevel is 2 the program should exit, but it doesn't. It keeps going on to the creation code. How could I fix this issue?