Yes, your 2nd & 3rd if statements would be checked, under almost any circumstances. There are two exceptions that I'm aware of.
1) The /halt command is encountered before getting to those statements.
2) The /return command is encountered before getting to those statements.