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


#1

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

Thanks!

`


#2

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:


#3

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