I want to write a condition in batch like this:
IF !APP_VERSION! NEQ 6 or not equal 7 then ...
How is the right way to do it?
if statment
Moderator: DosItHelp
Re: if statment
This is an AND
IF !APP_VERSION! NEQ 6 IF !APP_VERSION! NEQ 7 ...
this is an OR
set "flag="
IF !APP_VERSION! NEQ 6 set flag=1
IF !APP_VERSION! NEQ 7 set flag=1
if defined flag ...
Others might have different methods.
IF !APP_VERSION! NEQ 6 IF !APP_VERSION! NEQ 7 ...
this is an OR
set "flag="
IF !APP_VERSION! NEQ 6 set flag=1
IF !APP_VERSION! NEQ 7 set flag=1
if defined flag ...
Others might have different methods.