I have this block of code which is throwing error : "The syntax is incorrect".
SET "VAR1=UP"
SET "VAR2=UP"
IF ("%VAR1%"=="UP")
(
IF "(%VAR2%"=="UP")
( ECHO "VALUES MATCH")
)
But this keeps throwing error as mentioned above. Is the comparison syntax ( %VAR1%"=="UP") incorrect or there is any issue with Variable declaration?
The function of the code will be: There will be four such If blocks, each will compare the four possible values of the two variables and throw specific display message .
Would really be obliged if anyone can help me in this.
IFcommand. Open up a cmd prompt and typeIF /?to read the help file for theIFcommand.