Changes

Jump to: navigation, search

Objective-C Flow Control with if and else

11 bytes added, 15:04, 12 October 2009
no edit summary
In the chapter titled [[Objective-C Operators and Expressions]] we looked at how to use logical expressions in Objective-C to determine whether something is ''true'' or ''false''. Since programming is largely an exercise in applying logic, much of the art of programming involves writing code that makes decisions based on one or more criteria. Such decisions define which code gets executed and, conversely, which code gets by-passed when the program is executing. This is often referred to as ''flow control'' since it controls the ''flow'' of program execution.
In previous chapters the ''if'' statement has been used in some examples. In this chapter of [[Objective-C 2.0Essentials]] we are going to look at ''if'' statements in a little more detail.
== Using the if Statement ==

Navigation menu