break - ProgrammerTech
Language:

Search

break - ProgrammerTech

The break clause is to stop the loop when a certain condition or several conditions are met, and when it is executed, the loop is stopped (ie exiting the loop). Once the break statement is executed, it stops and exits the entire scope, clears it from memory and then moves to the next code in the program.