The `if`/`elif`/`else` structure is a common way to control the flow of a program, allowing you to execute specific blocks of code depending on the value of some data. If the condition following the keyword `if` evaluates as `True`, the block of code will execute:
*Note only the first condition that evaluates as `True` will execute. Even though `z > 6` is `True`, the `if/elif/else` block terminates after the first true condition. This means that an `else` will only execute if none of the conditions were `True`.*
We can also create nested if statements for decision making. Before preceding please refer to the <ahref='https://guide.freecodecamp.org/python/code-blocks-and-indentation'target='_blank'rel='nofollow'>indentation guide once</a> before preceding.
While the examples above are simple, you can create complex conditions using <ahref='https://guide.freecodecamp.org/python/comparisons'target='_blank'rel='nofollow'>boolean comparisons</a> and <ahref='https://guide.freecodecamp.org/python/boolean-operations'target='_blank'rel='nofollow'>boolean operators</a>.