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

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - Chrome Extension: Interacting with iframe embedded within popup -