- May
- 380
- 4
This seems odd to me and I wanted to find out why. When I run this, the set line does not fire if the if statement above it is false.
If I use iff/endiff instead it works, or if I remove the FOR statement it works, but I would think that it should work as written.
What am I missing?
Michael
If I use iff/endiff instead it works, or if I remove the FOR statement it works, but I would think that it should work as written.
Code:
for /L %i in (1,1,1) do (
if defined DEBUG then echo THIS IS A TEST
set ___DEBUGTEST=test
)
Michael