Search code examples
batch-fileoperators

Batch not-equal (inequality) operator


According to this, !==! is the not-equal string operator. Trying it, I get:

C:\> if "asdf" !==! "fdas" echo asdf
!==! was unexpected at this time.

What am I doing wrong?


Solution

  • Try

    if NOT "asdf" == "fdas" echo asdf