February 2003
Intermediate to advanced
456 pages
11h 8m
English
In This Chapter
In this chapter you’ll learn how to set up program loops. These loops will enable you to execute repeatedly a set of commands either a specified number of times or until some condition is met. The three built-in looping commands are
• for
• while
• until
You’ll learn about each one of these loops in separate sections of this chapter.
The for command is used to execute a set of commands a specified number of times. Its basic format is as shown:
for var in wordl word2 ... wordndo command command ...done
The commands enclosed between the do and the done form what’s ...
Read now
Unlock full access