Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

on errorlevel n only executes when equal

Jun
768
6
The Help says "ON ERRORLEVEL n will execute command when the internal ERRORLEVEL variable is greater than or equal to the integer specified by n." When I try it, it only executes when it is equal. I need to do "on errorlevel ge n" to have it execute when greater than or equal.

Foo.btm
on errorlevel 1 echo oops
call Foo2
echo %errorlevel

Foo2.btm
quit 2

TCC 12.01.44 Windows Vista [Version 6.0.6002]
 
The Help for ERRORLEVEL says "ERRORLEVEL is an alternate name (included for compatibility with CMD.EXE) for the _? variable". Shouldn't that be "the ? variable"?
 
Back
Top