EQU

EQU is an 'Equal To' comparison operator for the IF command

Examples

C:\> If "blah blah" EQU "blah blah" ECHO The items match
The items match

C:\> If 123 EQU 123 Echo The numbers Match
The numbers Match

 

EQU will perform a numeric comparison where possible, if you need a string comparison use the == comparison operator.

In addition to integer numbers, hex and octal numbers can also be compared within certain limits.

“That is the whole secret of successful fighting. Get your enemy at a disadvantage; and never, on any account, fight him on equal terms” ~ George Bernard Shaw

Related:

IF command - NEQ, LSS, LEQ, GTR, GEQ


 
Copyright © SS64.com 1999-2019
Some rights reserved