Learn

Congratulations! We are almost done with this lesson, but before we finish, let’s review if statements. We covered three types of if statements:

  • If: provides actions to perform when a condition is met
  • If/Else: perform one action if the condition is met or another if the condition is not met
  • If/Else if: allow us to check multiple conditions

We also covered three types of conditions for our if statements. The condition types are:

  • Equality: check if two values are the same
  • Relational: check if one value is less than or greater than another
  • Logical: group conditions together with and/or statements

Let’s use what we have learned to guide Codey to their final goal for this lesson!

Take this course for free

Mini Info Outline Icon
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.

Or sign up using:

Already have an account?