PseudoExit - nonkit/SmallWikiPad GitHub Wiki
Coding Patterns > PseudoExit
PseudoExit
Use i = n to exit For loop.
For i = 1 To n
Judge()
If exit Then
i = n ' exit For
EndIf
EndFor
Use cond = "False" to exit While loop.
While cond
Judge()
If exit Then
cond = "False" ' exit while
EndIf
EndWhile