Do
Run Stuff, Something
If Something = SomethingElse Then
Exit Do
End If
Loop
|
Do Run Stuff, Something Loop Until Something = SomethingElse |
Do
If Something = SomethingElse Then
Exit Do
End If
Run Stuff, Something
Loop
|
Do Until Something = SomethingElse Then Run Stuff, Something Loop |
Do
Correspond Stuff, Something
If Something = SomethingElse Then
Exit Do
End If
Run Stuff, Something
Loop
|
Correspond Stuff, Something
If Something = SomethingElse Then
Exit Do
End If
Run Stuff, Something
Do
Correspond Stuff, Something
If Something = SomethingElse Then
Exit Do
End If
Run Stuff, Something
Loop
|
Correspond Stuff, Something
If Something = SomethingElse Then
Exit Do
End If
Do
Run Stuff, Something
Correspond Stuff, Something
If Something = SomethingElse Then
Exit Do
End If
Run Stuff, Something
Loop
|
Correspond Stuff, Something
If Something = SomethingElse Then
Exit Do
End If
Do
Run Stuff, Something
Correspond Stuff, Something
If Something = SomethingElse Then
Exit Do
End If
Loop |
Correspond Stuff, Something Do Until Something = SomethingElse Run Stuff, Something Correspond Stuff, Something Loop |
Do
Execute Floor, Broom
If Floor.Dust = 0 Then
Exit Do
End If
Broom.Restore()
Loop
|
Execute Floor, Broom Do Until Floor.Dust = 0 Broom.Restore() Execute Floor, Broom Loop |
Do
Run Bull, Cow
If Cow.Caught Then
Exit Do
End If
Loop Until Bull.Tired
|
Do Run Bull, Cow Loop Until Bull.Tired Or Cow.Caught |
Do While X > 0
If Y = 0 Then
Exit Do
End If
X = X / Y
Loop
|
Do While X > 0 And Not Y = 0 X = X / Y Loop |
Do Until Bull.Tired
Run Bull, Cow
If Cow.Caught Then
Exit Do
End If
Loop
|
Do Until Bull.Tired And Cow.Caught Run Bull, Cow Loop |
Do
Z = Z - 1
Y = Y - Z
If Y + Z = 0 Then
Exit Do
End If
X = X + X \ (Y + Z)
Loop While X = 50
|
Do
X = X + X \ (Y + Z)
Z = Z - 1
Y = Y - Z
If Y + Z = 0 Then
Exit Do
End If
Loop While X = 50
|
Z = Z - 1
Y = Y - Z
Do
X = X + X \ (Y + Z)
Z = Z - 1
Y = Y - Z
If Y + Z = 0 Then
Exit Do
End If
Loop While X = 50
|
Z = Z - 1 Y = Y - Z Do Until Y + Z = 0 X = X + X \ (Y + Z) Z = Z - 1 Y = Y - Z Loop While X = 50 |
Z = Z - 1 Y = Y - Z Do While X = 50 And Not Y + Z = 0 X = X + X \ (Y + Z) Z = Z - 1 Y = Y - Z Loop |
For N = S To F Step W Process N Next |
N = S Do Until N > F Process N N = N + W Loop |
N = S Do Until N < F Process N N = N + W Loop |
N = S Do Until (N > F And W > 0) Or (N < F And W < 0) Process N N = N + W Loop |
For i = 0 To UBound(X)
'optional stuff (one).
If X(i) = something Then
Exit For
End If
'optional stuff (two).
Next
|
i = 0
Do Until i > UBound(X)
'optional stuff (one).
If X(i) = something Then
Exit Do
End If
'optional stuff (two).
i = i + 1
Loop
|
i = 0 'optional stuff (one). Do Until i > UBound(X) Or X(i) = something 'optional stuff (two). i = i + 1 'optional stuff (one). Loop |
Private Sub TB_Click()
'Initialization code.
If MyCondition Then
Exit Sub
End If
'Following code.
End Sub
|
Private Sub TB_Click()
'Initialization code.
If Not MyCondition Then
'Following code.
End If
End Sub
|
Private Sub TB_Click()
'Initialization code.
If MyCondition Then
'Exiting code.
Exit Sub
End If
'Following code.
End Sub
|
Private Sub TB_Click()
'Initialization code.
If Not MyCondition Then
'Following code.
Else
'Exiting code.
End If
End Sub
|
Private Sub TB_Click()
'Initialization code.
If something Then
'Beginning of If code.
If MyCondition Then
'Exiting code.
Exit Sub
End If
'Ending of If code.
End If
'Following code.
End Sub
|
Private Sub TB_Click()
'Initialization code.
If something Then
'Beginning of If code.
If Not MyCondition Then
'Ending of If code.
Else
'Exiting code.
End If
End If
'Following code.
End Sub
|
Private Sub TB_Click()
'Initialization code.
If something Then
'Beginning of If code.
If Not MyCondition Then
'Ending of If code.
Else
'Exiting code.
End If
End If
If Not MyCondition Then
'Following code.
End If
End Sub |
Private Sub TB_Click()
'Initialization code.
If something Then
'Beginning of If code.
If somethingelse Then
'Begin of 2nd If code.
If MyCondition Then
'Exiting code.
Exit Sub
End If
'End of 2nd If code.
End If
'Ending of If code.
End If
'Following code.
End Sub |
Private Sub TB_Click()
'Initialization code.
If something Then
'Beginning of If code.
If somethingelse Then
'Begin of 2nd If code.
If Not MyCondition Then
'End of 2nd If code.
Else
'Exiting code.
End If
End If
'Ending of If code.
End If
'Following code.
End Sub
|
Private Sub TB_Click()
'Initialization code.
If something Then
'Beginning of If code.
If somethingelse Then
'Begin of 2nd If code.
If Not MyCondition Then
'End of 2nd If code.
Else
'Exiting code.
End If
End If
If Not MyCondition Then
'Ending of If code.
End If
End If
If Not MyCondition Then
'Following code.
End If
End Sub
|