You have 3 loops (I would try and lower that number) and are only breaking out of one. You need to break out of each of your three loops.
What loop are you trying to break out of? The while loop? The inner for loop? If it’s all of the loops, since this is in a function you can use
return instead of
break which will end the whole function
Worked perfectly fine, thank you!
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.