if %variable%==(condition 1);(condition 2) echo (sentence here)
How can i put two conditions in one line? Does the ; work as space?
I don't wanna do like this:
if %variable%==(condition 1) echo (sentence here)
if %variable%==(condition 2) echo (sentence here)
Help with the if command.
Moderator: DosItHelp
Re: Help with the if command.
Code: Select all
@echo off
for %%a in ("condition 1" "condition 2") do if /i "%variable%"=="%%~a" echo (sentence here)