under python for PC there is a 6k library "goto-statement"
It is not small for ESP8266
how to exit from nested loop?
Code: Select all
def LabeledNestedLoop(aMax):
for A in range(10):
#LabelA
for B in range(10):
for C in range(10):
print(A, B, C)
if (C == aMax):
#goto LabelEnd
# or
#goto LabelA
#LabelEnd
print('The end')