void break [int $levels = 1];
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:
- (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.
Whoever says that coding is hard, just smack them.
Go Deep Pro
In this video, you will go deeper into the instruction to discover further how and why it works.