The value of an exit status is an integer. Usually, the value 0 indicates that the exiting process was successful, and 1 (or greater) indicates that it failed.
In the bash shell, errorlevel may be accessed by the special environment variable ?, for example:
true; if [ $? -eq 0 ]; then echo "True."; else echo "Wait, shouldn't that be true?"; fi