NEQ

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

Example

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:

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


© Copyright SS64.com 1999-2014
Some rights reserved