re the following simplified code fragment:
for i in range(nnn): for j in range(nnn): if (function1 call returns True): if (function 2 call returns True): result = (some result) break
I want to break out of the whole block once both fn1 and fn2 return True. “break” only takes me out of its loop, after which the i-loop still runs.
This is not a showstopper since I can rewrite the block with while loops and incremented counters, but it ends up with several more lines.
I’m looking for a way to control the number of levels you go back up. Thanks in advance for your advice.
Re indents: spaces and option-spaces get lost. thanks for the back-tick tip…