Conditionals
Decisions, decisions. Conditionals are how we do something, or something else.

In this unit I’ll introduce you to conditionals.

Through the use of conditionals we can tell our program “do this, or do that” depending on some condition.

The first thing I’ll introduce is how to create those conditions, using comparison operators.

Then we’ll see how to use:

  • if
  • else
  • switch

and the ternary operator.

Lessons in this unit:

0: ▶︎ Introduction
1: Comparison operators
2: `if` statements
3: How to use `else`
4: `switch`
5: The ternary operator
Are you intimidated by Git? Can’t figure out merge vs rebase? Are you afraid of screwing up something any time you have to do something in Git? Do you rely on ChatGPT or random people’s answer on StackOverflow to fix your problems? Your coworkers are tired of explaining Git to you all the time? Git is something we all need to use, but few of us really master it. I created this course to improve your Git (and GitHub) knowledge at a radical level. Launching May 21, 2024. Join the waiting list!