If or statements

Microsoft Windows xp home edition with s...
November 6, 2010 at 17:56:04
Specs: Windows XP
Is there any way to write an "IF OR" or a "IF AND" statement in a batch file?

See More: If or statements

Report •

November 6, 2010 at 18:09:44
You you have to write them out separately in batch files. For example, IF OR;

IF "%Var1%"=="1" ECHO Hello
IF "%Var1%"=="2" ECHO Hello

or, for IF AND;

IF "%Var1%"=="1" (
	IF "%Var2%"=="2" ECHO Hello

Can I put a question here?

Report •
Related Solutions

Ask Question