program errorlevel

I am trying to write a shell script that will unzip some files automatically. I read using the man command the various errorlevel numbers the unzip program will exit with depending on what has happened. What I want to know is - how can I use an if or case statement to see what this errorlevel is. I know you can do this in dos, so how is it done in unix - is it in $errorlevel or something?
Thanks in advance
JP

You want the exit code which is available as $? And there always will be some $? after a command. If the command worked, it is zero.

Thanks Perderabo!