Currently I am doing this in my batch file and it works fine
IF DEFINED var1 (do something) ELSE (do something else)
Now I want to check more than one variables are defined or not with an AND operator between them. How can I achieve that?
for example something like
IF DEFINED(var1) && DEFINED(var2) (do something) ELSE (do something else)
Update:
I know I can do nesting but I am looking for a clean approach…
Nest your second if inside the (do something)