What does break; do in this function?

Ahhh, thanks Helibob, that seems to have solved it

and thanks to adwsystems for the clarification