| 1. |
Solve : If not defined statement not working.? |
|
Answer» Okay, in one of my batch files. If the user does not put an input I WANT it to go to the same question. So here's what I'm doing. Duh, why wasn't I thinking of this before In the first post you were trying to find out if a variable existed, the second you are dealing with the value of a variable. Your first post works with this syntax: Code: [Select]if not defined variable goto question Well, I just heard of using defined in an if statement. I was thinking it did a completely different thing. |
|