What are Conditional Statements?

In this lesson, we will explore conditional statements and their functionality.

Definition #

A conditional statement is a Boolean expression that, if True, executes a piece of code.

It allows programs to branch out into different paths based on Boolean expressions result in True or False outcomes.

Get hands-on with 1200+ tech skills courses.