The What
Description
The break
stops the execution of the current looping control structure. “Stopping the execution” means the control jumps from where the break
is to the closing code block of the control structure. It works with these control structures:
Parameters
levels
- (optional) Indicates how many nested control structure levels to break out of. The default value is 1, meaning it breaks out of the immediate (current) control structure.
Show It in ActionBasic
Let’s see the break
in action. In this video, you will see how it works.
Your best friend is code, Tonya is making the introductions.
Go Deep Pro
In this video, you will go deeper into the instruction to discover further how and why it works.