rem Example: various comparatorsset X=10IF%X%EQU10echo X is 10set Y=bar
IFNOT%Y%==foo echo Y is not foo
IFNOT a==A echo case-sensitive
IF /i a==A echo now equal
rem Example: other checksIFNOTDEFINED SOME_VAR echo SOME_VAR is notsetIFNOTEXIST some_file.txt echo.>some_file.txt
IFNOTEXIST some_file.txt (echo.>some_file.txt) ^
ELSEecho file already exists
IF%ERRORLEVEL%EQU0echo last command succeeded