Expands to the exit status of the most recently executed foreground pipeline.
echo $? if [$? -eq 0]; then # do something else # do something else fi