Nested Statements: We can put one or more control statements (if, for, while) inside of control statements. Saw this a bit in the while loop example in the last lecture (there was an if inside of a while) We'll start by talking about nested if statements (if statements inside of if statements) High level syntax: if boolean_expression1 if boolean_expression2 statements that execute if boolean_expression1 and boolean_expression2 are both true else statements that execute if boolean_expression1 is true and boolean_expression2 is false end else if boolean_expression3 statements that execute if boolean_expression1 is false and boolean_expression3 is true else statements that execute if boolean_expression1 and boolean_expression3 are both false end end Be careful to match up an end with each if statement. Also be careful to place else and elseif statements with the intended if statement. Indentation will make it easier to track this. Rock, paper, scissors example (Don't type it out, a lot of time and everyone should understand it) Nested loops: A nested loop refers to putting one loop inside of another. When the code executes, the first iteration of the outer loop triggers the inner loop, which then runs to completion. Then, the next iteration of the outer loop begins and the inner loop is again triggered. This continues until the outer loop finishes. Nested for loop example, make a multiplication table Walk through execution for a few iterations