The number a command returns when it ends; 0 means success and anything else means failure. The shell exposes it as $? and uses it in &&, || and if.