so i have in a batch-file some vars stored from a text file
(
set /p var1=
set /p var2=
set /p var3=
)<oi.txt
and they represent an if statement.
if i were to run %var1% it would run the if statement, however when i run
for /l %%i in (1,1,3) do !var%%i!
(in setlocal enabledelayedexpansion) it runs the if, however it returns
`if` is not recognized as an internal or external command
`if` is not recognized as an internal or external command
`if` is not recognized as an internal or external command
is it a microsoft oversight? or maybe something that fixes another bug at the price of not having this option?
*edit this has nothing to do with the for command, using !var%number%! with var1 having the if statement inside, returns the same problem. (also, im 100% sure the if statement inside the var is correct, why wouldnt it be recognized even if it was wrong?)