A CDE Definition
A repeating sequence in a program. Most software programs have a main loop and a series of minor loops nested within. Learning how to set up loops is fundamental programming logic. For a detailed look at an actual loop, see event loop.
Loops are accomplished by various programming structures that have a beginning, body and end. The beginning generally tests the condition that keeps the loop going. The body comprises the repeating statements, and the end points back to the beginning. In assembly language, the programmer writes a GOTO instruction as in the following pseudocode example that counts to 10. See pseudocode.
move "0" to EventCounter
EventLoop add "1" to EventCounter
compare EventCounter to "10"
goto EventLoop if unequal
In a high-level language, the pointer back to the beginning is generated by the interpreter or compiler as in this pseudocode example, which uses a WHILE loop. See pseudocode and do loop.
EventCounter = 0
do while EventCounter not equal to 10
EventCounter = EventCounter + 1
Batch Print the Invoices
Before/After Your Search Term
|look & feel||loop carrier|
|look-ahead cache||loop plant|
|look and feel||loop sharing|
|look up||loop start|
|lookup table||loopback IP address|
Terms By Topic
Click any of the following categories for a list of fundamental terms.