Look at the Java code below. The purpose is to not output when i is 3 and jump directly to the next loop.
int i = 0;
while (i < 5) ...{
i++;
if (i == 3) ...{
continue;
}
System.out.println("I'm not 3, I'm " + i);
// Do something else...
}
However, how should it be written in ASP (VB)? Many people are in trouble. Here, I give some answers for reference, and I would like to ask for your advice!
i = 0
Do While (i < 5)
If (i <> 3) Then
'MsgBox "I'm not 3, I'm " & i
'Do something else...
End If
i = i + 1
Loop
Obviously, the above example will make people laugh.
i = 0
Do While (i < 5)
For j = 1 To 1
If (i = 3) Then
Exit For
End If
'MsgBox "I'm not 3, I'm " & i
'Do something else...
Next j
i = i + 1
Loop