DEV Community

Antonio
Antonio

Posted on

lesson 11

  1. Why do you think conditionals are important?
  2. Sometimes you want code to execute only if a certain condition is true, and in Swift that is represented primarily by the if and else statements. You give Swift a condition to check, then a block of code to execute if that condition is true.

2. Give a set of instructions on how you think a thermostat program should work and “bold/underline” the conditionals.

Top comments (0)