Great work! Control flow allows Java programs to execute code blocks depending on Boolean expressions. What did we learn about control flow so far?
! are used to build Boolean expressions and have a defined order of operations
else statements are used to conditionally execute blocks of code
Ternary Conditional: a shortened version of an
else statement that returns a value based on the value of a Boolean expression
Switch: allows us to check equality of a variable or expression with a value that does not need to be a Boolean