In a "While" loop, must an IF statement always preceed BREAK command?


This is just a general question regarding the lesson because I can see the risk associated with "while" loops.




The break statement is to ensure you exit the loop and is highly advised that you include when writing while loops to avoid infinite loops or recursive errors.:slight_smile:


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.