|Your post is a bit confused; if you want samples of IF statements that push to END if negative here some examples|
if not exist FILE goto :EOF
if ErrorLevel 1 goto :EOF
Notice that the positive end of the previous statement is checked by
if not ErrorLevel 1...
if not "%var%"=="ABCD" goto :EOF
:EOF is the builtin exit point for NT batch scripts and doesn't need to be declared.