Logical Operators

  • Matthew Campbell
Chapter

Abstract

The logical operators are used with boolean values and expressions that return boolean values. You use these operators to deal with expressions that are made up of parts that can be either true or false. Logical operators are used to test whether two expressions are true or whether one expression is true. Table 18-1 describes the logical operators supported by Swift.

Copyright information

© Matthew Campbell 2014

Authors and Affiliations

  • Matthew Campbell
    • 1
  1. 1.New YorkUSA

Personalised recommendations