DAY 3

OPERATORS AND CONDITIONS


Today we’re going to get into the real detail of Swift: operators and conditions. This can sometimes trip folks up when they are learning, because as Joseph Campbell once said, “computers are like Old Testament gods: lots of rules and no mercy.”

Don’t worry, though. Sure, if you get a condition wrong then your code might not work at first, but it costs nothing other than a little head scratching to fix it up and try again.

Today you have ten one-minute videos to watch, and you’ll meet things like operator overloading, switch statements, and more. Once you’ve watched each video there’s a short test to help make sure you’ve understood what was taught.

  1. Arithmetic Operatorstest
  2. Operator overloadingtest
  3. Compound assignment operatorstest
  4. Comparison operatorstest
  5. Conditionstest
  6. Combining conditionstest
  7. The ternary operatortest
  8. Switch statementstest
  9. Range operatorstest
  10. Operators and conditions summarytest

You’ve finished day three now, and you’re starting to write useful Swift code – make sure to tell the world about your progress!

Need help? Tweet me @twostraws!

100 DAYS OF SWIFT


The 100 Days of Swift is a free collection of videos, tutorials, tests, and more to help you learn Swift faster. Click here to learn more, or watch the video below.

Back to 100 Days of Swift

Click here to visit the Hacking with Swift store >>