Exit
Previous Top Next

Exits For, While, Until loops.
In case of nested loops, Exit will exit only the last level.
Syntax: Exit
Example:

For n = 1 to 100
            If n = TextBox1.Text Then Exit
Next