# BREAK

Updated: 11/30/2021, 7:00:45 PM
Created: 11/30/2021, 7:00:45 PM
Last Updated By: Jake Tuttle
Read Time: 1 minute(s)

# Description

The statement allows for the configuration of the BREAK statement. This may take the form:

BREAK
1

Used alone, for instance in a loop, BREAK will terminate the innermost loop, which it ignores if used in the outside loop construct.

An example of its use is as:

LOOP
  READNEXT KEY FROM LIST1 ELSE BREAK
  **code to be executed in the loop

REPEAT
* Program resumes here after BREAK condition satisfied.
1
2
3
4
5
6

See also BREAK ON/OFF, CONTINUE

Go back to jBASE BASIC

Go back to Programmers' Reference Guide