I want it all on one string, because I'm picky. Plus I can then assign an entire section of commands in just one IF statement. That is actually how it is right now but it makes the code bloated since I have like 7 menus and 7*3=21 possible inputs.
ie.
running say this:
Code:
IF "%RUNNING_LOOP%"=="1"[color=red]^[/color]"ONE" (
SET /A RUNNING_LOOP=%RUNNING_LOOP%+1
ECHO %USER_INPUT% is not a valid response
)
compared to this:
Code:
IF "%RUNNING_LOOP%"=="ONE" (
SET /A RUNNING_LOOP=%RUNNING_LOOP%+1
ECHO %USER_INPUT% is not a valid response
)
IF "%RUNNING_LOOP%"=="1" (
SET /A RUNNING_LOOP=%RUNNING_LOOP%+1
ECHO %USER_INPUT% is not a valid response
)
Another way I could get around doing this is assigning somewhere for the IF statement to GOTO and then just make them common, but after a while of doing this the hierarchy turns into absolute hell.
Code:
IF "%RUNNING_LOOP%"=="ONE" GOTO START
IF "%RUNNING_LOOP%"=="1" GOTO START
:START
SET /A RUNNING_LOOP=%RUNNING_LOOP%+1
ECHO %USER_INPUT% is not a valid response
:LINE2
:LINE3
:LINE4
ECHO Think of a few pages of these lines and you see what I mean by hell.