Abstract
In this chapter, we will discuss one of the most basic and frequent operations you will perform as you program: comparing data. In the bookstore example, you may need to compare book titles if your clients are looking for a specific book. You may also need to compare authors if your clients are interested in purchasing books by a specific author. Comparing data is a common task performed by developers. Many of the loops you learned about in Chapter 8 will require you to compare data so that you know when your code should stop looping.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2019 Stefan Kaczmarek, Brad Lees, Gary Bennett
About this chapter
Cite this chapter
Kaczmarek, S., Lees, B., Bennett, G. (2019). Comparing Data. In: Swift 5 for Absolute Beginners. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-4868-3_9
Download citation
DOI: https://doi.org/10.1007/978-1-4842-4868-3_9
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-4867-6
Online ISBN: 978-1-4842-4868-3
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)