For counter = start To end [ Step step ]
   [ statements ]
   [ Break ]
   [ statements ]
Next


Repeats a group of statements a specified number of times.


The Break statement exits the loop in whose loop body the statement is executed.


Example:

Dim $i = 0
Dim $s = "text"

For $i = 0 To 10 Step 2
   If $s <> "" Then
      $s = $s + ","
   End If
   $s = $s + $i

   'terminate loop if the length of $s is larger than 10
   If Len($s) > 10 Then
      Break
   End If
Next