Code: Select all
IF (... | ...)
Does it actually work in Win 10 Cmd batches? Can you give a working code example?
Is there a similar way in a batch to process AND/OR multiple conditions inside one IF statement instead of repeating IF statements for each condition separately on a new line?
Related, why IF statements don't work when entered on the same line like this:
Code: Select all
IF %var%==s GOTO :test1 || IF %var%==t GOTO :test2
Is there a way to make code more compact and efficient in this case, if there're multiple IF statements?