Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Control flow structures

Until now, we showed a lot of declarative features: you are describing what do you want, but not how.

This way of writing programs is usually easier to understand for another person reading the code, and also tends to result in shorter implementations.

However, there may be situations where is probably better to just write and if or a for loop, so Komodo has both of these. Let's get to know them.