I need batch code that if a user types yes goto :yes if type anything else goto :no
this is my code
@echo off
title CMD
:main
CLS
set /p input=
if %input%==yes goto yes
else goto no
goto main
:yes
cls
echo you typed yes
pause>nul
exit
:no
cls
echo you typed something other then yes
pause>nul
exit
But it doesn't work, how can i get this to work? So far if you type yes it goes to :yes But if you type something else it just goes to a blank screen.