Video 5: Conditionals (page 1 of 10) |
Conditional execution allows programmers to execute different blocks of code depending on various inputs or variable values. For instance, if the value of an x variable is less than 7, then we may want to execute certain statements. However, if the value of x is greater than or equal to 7, then we may want to execute different statements.