|
Loop Structures |
Top Previous Next |
Loop structures are used to iterate through a certain piece of code more than once. This is useful in many scenarios, such as processing arrays, processing request queues, performing string operations (such as parsing), etc.
An example of a simple loop structure would be:
dim f, i as integer
f = 1
for i = 1 to 6 f = f * i next i ' f is now equal to 1*2*3*4*5*6 (720).
|
The following loop structures are implemented in Tibbo Basic: