Learn
Conditionals
Review
Great job getting through Emojicodeβs conditionals!
In this lesson we went over:
- The
βͺοΈ
statement accepts a condition and executes a code block if the condition isπ
. - The
π
statement provides a default code block to run if no other conditions areπ
. π
is used to check if two values are equal.- Other comparison operators,
βοΈ
,βΆοΈ
,βοΈπ
,βΆοΈπ
compare the value of two numbers. - The
π βͺοΈ
statement is used to check additional conditions and executes a code block if its condition isπ
. - The
π€
logical operator checks that two expressions are bothπ
. - The
π
logical operator that at least one of two expressions isπ
. - We can group together expressions using
π€ π€
.
ππ₯³ Thatβs a lot! A round of π for you!
Instructions
Test your skills in the code editor!
If you want to learn more, check out Emojicodeβs documentation!