If I use the if command but enter a value that isn't an option it goes to a random section, for example:
set /p test
if %test% == x goto home
if %test% == y goto home2
:home
echo hi
pause
:home2
echo how are you
pause
:pie
echo want some pie?
if I enter x, it goes to home but if I enter c or w it goes to pie or home2, how do I fix that?