# Statements · Chromia Docs (concept)

> Statements in Rell are essential for controlling program flow and data handling.

Source: https://docs.chromia.com/rell/language-features/statements/

# Statements

Statements in Rell are essential for controlling program flow and data handling. This section explores variable
declarations, conditionals, and loops, providing the foundation for building structured and effective Rell programs.

[Variable declarationsDeclare constants with `val` and mutable variables with `var`. Constants are immutable and can exist outside functions, while variables can be modified within their scope.](https://docs.chromia.com/rell/language-features/statements/local-variable/)[Basic statementsLearn Rell's basic statements for assigning values, calling functions, returning values, and grouping code blocks for organized data manipulation and control flow.](https://docs.chromia.com/rell/language-features/statements/basic-statements/)[Conditional statementsUse the if statement for conditional logic, with optional else blocks and else-if chains, and the when statement for multi-way branching similar to switch in other languages. Both also exist in expression form.](https://docs.chromia.com/rell/language-features/statements/conditional-statements/)[Loop statementsControl loops with for, while, break, and continue statements. The for loop iterates over ranges or collections, while the while loop continues as long as a condition is true. Use break to exit loops early and continue to skip to the next iteration.](https://docs.chromia.com/rell/language-features/statements/loop-statements/)

[View this page on docs.chromia.com](https://docs.chromia.com/rell/language-features/statements/)Content mirrored from the live docs
