Is there a way to stop the execution of the current indentation level? I'm looking for a way to break out of a block comparable to the break-statement in loops.
if some_state:
if bool1:
<jump to some-final-code> # Looking for this operator
<some code>
if bool2:
<jump to some-final-code> # Looking for this operator
<moa code>
elif some_other_state:
<some_other_conditions_with_equally_possible_jumps>
<some_final_code>
I know that many ways exist to solve this in a readable way. Let's assume the code of the whole block is semantically related and should not be separated info different methods. Raising exceptions adds a lot of lines of code and another unwanted level of incomprehension.