Every time I try playing it exits instead of moving on to the next line when I clik enter; it works fine until after you enter your name, then it skips to question 1, then it exits. I'm not an expert on this so I would like to know what I'm doing wrong and how to fix it. If you notice any other mistakes please feel free to point them out. Thanks! :)
@echo off color F0 cls echo. echo True or False pause echo Welcome! May I ask your name before we begin? echo. set /p name= echo. echo Hello %name%, nice to meet you! echo. echo My name is Myst. echo. cls echo. echo Let us begin! :start color FC cls echo. echo QUESTION 1 pause echo. echo Though hard, you can start a fire by rubbing 2 cool ranch doritos together for a long time. echo. echo TRUE or FALSE echo. set /p variable= echo. if %variable% equ TRUE goto question2 if %variable% equ FALSE goto answer1 if %variable% neq TRUE goto start :answer1 cls echo. echo Wrong! Though it is very hard, it is possible. goto start :question2 color F3 cls echo QUESTION 2 pause echo. echo Singing in the shower lowers your cholesterol, heart rate, & risk of cancer and heart disease. echo. echo TRUE or FALSE echo. set /p variable= echo. if %variable% equ TRUE goto answer2 if %variable% equ FALSE goto question3 if %variable% neq TRUE goto question2 :answer2 cls echo. echo Wrong! echo. echo Here is a fast fact for you %name%. Dark chocolate doesn't either. goto start :question3 color F5 cls echo QUESTION 3 pause echo. exit
ctrl+k, or click the{}button