Exit is the statement from VB script you can use to exit the loop.
E.g. If you are using Do While loop,
Do While (Condition)
' Do something
If (ExitCondition) Then Exit Do
' Do something else
Loop
If you are using for loop you can use
Exit For
for while loop you can use,
Exit While.