Core: learn it Step 3 of 16 on the Python Developer roadmap

if, elif and else

Use if, elif and else to run different code depending on a condition. Indentation matters in Python: the indented lines belong to the condition above them.

Learn it on JeliScript

More in Decisions and loops

See it on the Python Developer roadmap