How to exit a nested if statement

I suspect if it is necessary to "exit a nested if statement" it is because the code is poorly designed.

Why don't the IFs run to a natural conclusion?

...R