Is there an error with this IF statement? (Windows batch) -
so here odd thing. these if statements:
if "%option%"=="1" goto 1-1 if "%option%"=="2" goto 1-2 if "%option%"=="3" goto 1-3
do work.
however, these if statements:
if "%option%"=="eat" goto eat if "%option%"=="drink" goto drink if "%option%"=="sleep" goto sleep if "%option%"=="suicide" goto suicide if "%option%"=="stats" goto stats
do not.
i know using more 1 character possible, because works @ beginning of prompt in these if statements:
if "%startgame%"=="how2play" goto how2play if "%startgame%"=="play" goto play
any idea why numbers working , not words?
Comments
Post a Comment