BREAK

BREAK


Boolean expressions Index Level BREAK OFF
Syntax BREAK [OFF | ON | expression]
Category BASIC
Type Statement
Description enables or disables the <break> key.

The break key, if enabled, interrupts the current process and either invokes the FlashBASIC debugger or pushes a level.

"BREAK OFF" disables the <break> key.

"BREAK ON" reverses the effect of the last executed "BREAK OFF" command.  If multiple "BREAK OFF" statements are executed, an equal number of "BREAK ON" statements must be executed to return to a "breakable" state.

In the "expression" form, the break key is disabled when the expression evaluates to false.  It is enabled when the expression evaluates to true. In an expression, 0 = "BREAK OFF" and non-zero = "BREAK ON".
Options
See Also statements & functions BREAK OFF DEBUG level pushing break-key-on break-key break-key-off BREAK ON u218d u318d
Example break user = "fred"

If the value of "user" is "fred", this has the same effect as issuing the statement "BREAK-ON".
Warnings The expression following "BREAK" must evaluate as numeric or the following runtime warning message is displayed:

[b16] in program "pgm", line n:  Non-numeric data when numeric required; zero used.
Compatibility D3 7.0 AP R83
Boolean expressions Index Level BREAK OFF