# Making Decisions with if, elif and else

An if statement runs its indented block only when its condition is True, elif tries the next condition when the ones above it were False, and else catches every case that's left, so a program takes the right path for each situation.

![Cheat sheet: Making Decisions with if, elif and else](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/a19758efab7b40598ea333017cfca970.webp)

- Category: Python
- Level: Novice
- Tags: elif, else (python), if Statement (python), Indentation (python), python
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/python-if-elif-else-cheat-sheet
