34,333
edits
Changes
m
Text replacement - "<htmlet>objc<htmlet>" to "<htmlet>objc</htmlet>"
<hr>
<htmlet>objc</htmlet>
In [[Objective-C Flow Control with if and else]] we looked at how to control program execution flow using the ''if'' and ''else'' statements. Whilst these statement constructs work well for testing a limited number of conditions they quickly become unwieldy when dealing with larger numbers of possible conditions. To simplify such situations Objective-C has inherited the ''switch'' statement from the C programming language. In this chapter we will explore the ''switch'' statement in detail.