Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Beginning Swift

You're reading from   Beginning Swift Master the fundamentals of programming in Swift 4

Arrow left icon
Product type Paperback
Published in May 2018
Publisher Packt
ISBN-13 9781789534313
Length 202 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
Rob Kerr Rob Kerr
Author Profile Icon Rob Kerr
Rob Kerr
Kåre Morstøl Kåre Morstøl
Author Profile Icon Kåre Morstøl
Kåre Morstøl
Arrow right icon
View More author details
Toc

Chapter 2. Swift Operators and Control Flow

In the last lesson, you learned the fundamentals of Swift syntax, data types, and how to use variables to store and operate on data in a Swift program.

In this lesson, you'll learn how to use the fundamental flow control structures and language elements that form the building blocks for Swift programs.

Swift contains a full set of flow control constructions that help you build logic and organize applications. Swift implements control structures you'll find familiar, and Swift adds modern features and extensions not available in some other languages.

This lesson also covers the broad range of Swift logical and bitwise operators. Swift supports a comprehensive set of operators, based on the C operator construction—but with modern extensions that we'll fully cover in this lesson.

You have been reading a chapter from
Beginning Swift
Published in: May 2018
Publisher: Packt
ISBN-13: 9781789534313
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime