Control Flow

This part of the documentation presents how to use conditional expressions to control the flow of the program.

If statements

If statements use a conditional statement to decide whether to execute a block of code or not.

Syntax:

if expression do (other expression)

Printing something if true example:

>>> if true do print("Hello World")
Hello World
>>> if false do print("Hello World") // No output