Command break

The command break is used to stop the execution of a loop.

Example


In the example above, when the value of the variable iNumber is equal to 3 the condition of the command if is true, causing the execution of the command break which stops the execution of the block while even if the condition has not been met yet.