While browsing questions and answers in this forum i found a piece of code were names were given to loops in order to use them for break. Like
nameofloop:
It's known as a labelled break which is a form of branching statement. You can see all the examples in the Official Documention.