OnWorks Linux and Windows Online WorkStations

Logo

Free Hosting Online for WorkStations

< Previous | Contents | Next >

31 – Flow Control: Branching With case‌


In this chapter, we will continue our look at flow control. In Chapter 28, we constructed some simple menus and built the logic used to act on a user’s selection. To do this, we used a series of if commands to identify which of the possible choices has been se- lected. This type of logical construct appears frequently in programs, so much so that many programming languages (including the shell) provide a special flow control mecha- nism for multiple-choice decisions.


 

Top OS Cloud Computing at OnWorks: