FOR/NEXT loops have lots of uses, but they're often associated with arrays because they're a simple way to perform the same operation on every member of the set. Like so: FOR I=0 TO 7 A[I]=2 NEXT In the first line, the variable I is created and given the value 0. When the program reaches the NEXT, it adds 1 to I. If I isn't more than 7, it goes back up to the top and repeats the loop.