How to exit a nested if statement

[quote author=Blue Eyes date=1510767914 link=msg=3487963]
Or you could do nothing but exiting doesn't make much sense on an Arduino.[/quote]
Neither does going to all the trouble of setting up an interrupt-driven system and then forcing your loop() function to wait in a 'while' loop until an interrupt occurs.