Hi Friends here is how we can exit the current iteration on a condition and continue with next iteration with a for loop in VB Scripting. Like Continue in VB.
For i=0 to 10
Do
IF i<5 Then
Exit DO
End IF
Statement 1
Statement 2
Statement 3
Statement 4
Exit Do
Loop
Next
for the first 5 iterations, Statements 1 thro 4 will not be executed. Next 6 iterations, Statements 1 thro 4 will be executed.
For i=0 to 10
Do
IF i<5 Then
Exit DO
End IF
Statement 1
Statement 2
Statement 3
Statement 4
Exit Do
Loop
Next
for the first 5 iterations, Statements 1 thro 4 will not be executed. Next 6 iterations, Statements 1 thro 4 will be executed.