Do While loop can have one or more conditions in its expression. In performing it, you have to use a special syntax form. This syntax form gives a way to continue performing while one or more conditions are true.
This is the syntax in doing Do While Loop.
- Do While [counter] >= [start #] And [counter] <= [start #]
- Dim i As Integer = 100
- Dim z As Integer = 0
- Do While i >= 0 And z <= 20
- i = i - 10
- z = z + 3
- MsgBox(i & " " & 3)