Introduction to Conditional Statements

Learn what conditional statements are and why are they used.

The need for conditional statements

Often, we take action based on the circumstances around us. This is called decision making. For instance, if the weather is hot, we might drink a cold beverage like a milkshake, and if the weather is cold, we might choose to drink hot chocolate.

Get hands-on with 1400+ tech skills courses.