I have created a simple riddles program on CMD using a Batch File. I would like it so that answers such as one can be answered as 1 aswell. So far I have this:
:Riddle_1
cls
echo.
echo I shake the earth with booming thunder
echo fell forests whole and homes complete.
echo I influence ships, topple kings
echo sweep down swift yet remain unseen.
echo.
set /p answer=What am I?
if %answer%==wind (goto Riddle_2) else (goto Riddle_1)
When I try:
if %answer%==wind (goto Riddle_2) else (goto Riddle_1)
if %answer%==Wind (goto Riddle_2) else (goto Riddle_1)
It ignores the second command altogether other variations do this or they will ignore the else command and make it go to the next question when the answer is wrong.
Is there anyway to fix this??