Flash cards
Review the key moves
1/4
Core idea
What is the main idea behind Go Nested if Statement?
Lesson checks
Practice each idea before moving on
Short Mimo-style checks built from this lesson's code, terms, and sequence.
1Quick choice
Which statement best captures the main point of this lesson?
2Fill blank
Complete the missing token from the example code.
___ {The Nested if Statement
You can have if statements inside if statements, this is called a nested if.
Syntax
if
condition1 {
// code to be executed if condition1 is true
if
condition2 {
// code to be executed if both condition1 and condition2 are true
}
}if