Quote:
Originally Posted by Napoleon_be
Should i do this in every loop? I mean can i also use break in the loop where i set double damage? Adjusted my code, let me know if it's alright or that there still should be some adjustments made.
|
Yes, if the goal of the loop is to find an element in a list. When the element is found, there's no reason to continue looping.
__________________