If you need to run the same statements repeatedly, you can program a loop.
If you know how many times you want to loop, you can use a for loop. This kind of loop is especially useful for counting up or counting down:
Example
<html>
<body>
@For i=10 To 21
@<p>Line #@i</p>
Next i
</body>
</html>
<body>
@For i=10 To 21
@<p>Line #@i</p>
Next i
</body>
</html>
Practice Excercise Practice now