EQU

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

Examples

Compare two strings:

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

Compare two numbers:

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 commands

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


 
Copyright © 1999-2024 SS64.com
Some rights reserved