Subj : Re: Pascal Help To : alterego From : stizzed Date : Sat Jun 27 2020 10:39 pm On |1528 Jun 2020|08, |15alterego |08said the following... al> Re: Pascal Help al> By: stizzed to All on Sat Jun 27 2020 04:52 pm al> al> st> program.exe al> st> if errorlevel 99 echo ERRORLEVEL 99 al> st> if errorlevel 98 echo ERRORLEVEL 98 al> st> When I run this with a coded Halt(333) it prints every ERRORLEVEL xx al> st> in the batch... al> al> My DOS memory is rusty, but IIRC, "if errorlevel x", means catch every al> error level that is x "or greater". al> al> So if you have your tests in ascending order, it will trip on every one. al> al> Perhaps you want "if errorlevel goto