What is the if statement
-decides whether a section of code executes or not
-the if statement uses a Boolean to decide whether the next statement or block of statements executes(if Boolean expression is true, execute next statement
What are flags
-A flag is a boolean variable (true or false) used to remeber if something has happened in your program
-when something is true turn the flag on and when its false the flag stays off
What are if-else statements
-an if else statement lets your program choose between two possible paths, one for when the condition is true and one for when its false
What are nested if statements
A nested if statement is when you put one if statement inside another
-The inner if only runs if the outer if is true. So first check outer. Think of it as a second question thats only asked if the first question was yes