Conditionals

4. Conditionals#

In this chapter we will cover a fundamental concept in programming: conditionals or making choices using control flow statements. You will learn

  • How to modify the behavior of your program based on the data you are working with

  • What the boolean data type is

  • What truthiness and falsiness of values are

  • What boolean operators are

  • What relational operators are

  • How to combine comparison operators

  • What is short-circuit evaluation

  • What it means to compare strings

  • How to write nested if statements