Conditional Operators

Let's expand our conditional-statement skillset by learning conditional operators.

We'll cover the following

Conditional operators (covered in the “Type of Operators” lesson) are commonly used in if and else if statements.

The AND operator

In the example below, the AND operator (&&) is used, meaning that both conditions must be true.

Get hands-on with 1400+ tech skills courses.