My problem is that I have to make a for loop that asks the user to type something 5 times and then do something depending in the user answer, my idea was to put a if else inside the for loop but that makes the program crash. Is there a easy way to make this? Also sorry if my english is not the best.
My code idea:
@echo off
for /l /f %%x in (1, 1, 5) do (
set /p option= type option
if %option%==a (
echo option a
) else (
if %option%==b (
echo option b
) else (
echo another option
)
)
)
pause
exit