If ERRORLEVEL
#include <iostream>
int main() {
int ERRORLEVEL;
// Assume ERRORLEVEL is set or calculated somewhere in the code
if (ERRORLEVEL == 0) {
// Code to be executed when ERRORLEVEL is 0
} else if (ERRORLEVEL == 1) {
// Code to be executed when ERRORLEVEL is 1
} else {
// Code to be executed when ERRORLEVEL is neither 0 nor 1
}
return 0;
}