Skip to main content

Control Flow

The video for “Control Flow” is in the works!

Control flow statements determine the order in which code executes.

If/Else Statements

Try it yourself
Loading...

For Loops

Iterate a specific number of times:

Try it yourself
Loading...

While Loops

Repeat while a condition is true:

Try it yourself
Loading...

Pattern Matching with Match

Powerful pattern matching with enums and optionals:

Try it yourself
Loading...

Previous: Functions | Next: Lists