NEQ is a 'Not Equal to' comparison operator for the IF command


C:\> If "blah blah" NEQ "blah blah" ECHO items did not match

C:\> If 123 NEQ 456 ECHO The numbers did not match

NEQ 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.

“Confidence comes not from always being right but from not fearing to be wrong” ~ Peter T. Mcintyre

Related commands

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

Copyright © 1999-2024
Some rights reserved