The syntax of the if
statement is if string1==string2
(there are other comparison operators...)
errorlevel
will never be equal to 0
because the strings "errorlevel" and "0" are compared.
The syntax you need is either
if errorlevel 1 (dothisthing if errorlevel is 1 or greater) else (dothatif errorlevel is less than 1)
or
if not errorlevel 1 (dothisif errorlevel is less than 1)
furthermore, break
does nothing under Windows (see break /?
from the prompt for docco)