JSL provides the For(), While(), Summation(), and Product() functions to repeat (or iterate) actions according to the conditions that you specify.
Note: A similar function called For Each Row() is for iterating actions over rows of a data table. See If for an example. Additional Ways to Access Data Values in Data Tables also describes iterating through table rows.