if (subroutine()) { # if the return value of subroutine is "true" (see reference above) exit 0; # success } else { exit 1; # failure }