BREAK statement
The BREAK statement can be used to break out of a loop, such as inside one created by the FOR statement.
Statement syntax
Example usage
The following queries shows example usage of this statement.
Creating a person for everyone in the array where the number is less than or equal to 5:
Breaking out of a loop once unwanted data is encountered: