| 1. |
Solve : Help...? |
|
Answer» I have a CODE... And what about if they just press Enter?If its not 1, 2 or 3 then it loops.Quote from: Helpmeh on August 17, 2009, 05:58:24 AM If its not 1, 2 or 3 then it loops. In the IF test, since %T% is (hopefully) a string, if you don't have any "quotes" or .dots. or {spider brackets} etc around the input variable %T% and the comparison value then it will crash if just Enter is PRESSED. Enter is an empty string. So, if just Enter is pressed - If %T%==1 GOTO softwaremenu expands to If ==1 GOTO softwaremenu This will cause an error. So do it like this If "%T%"=="1" GOTO softwaremenu Then if enter is pressed it expands to this If ""=="1" GOTO softwaremenu Ahh. Makes sense. |
|