📄️ Local variable declaration
In Rell, local variables play a crucial role in storing and managing data within a specific scope. They provide a way to temporarily hold values that can be manipulated, utilized, or referenced within a limited context.
📄️ Basic statements in Rell
In Rell, the fundamental building blocks of programming are encapsulated within basic statements. These statements enable you to perform a wide range of operations, from assigning values to variables to executing functions and controlling program flow.
📄️ If statement
In Rell, the if statement is used to create conditional logic that allows you to execute different blocks of code based on whether a specified condition is true or false.
📄️ When statement
In Rell, when statement is similar to switch in C++ or Java, but uses the syntax of when in Kotlin. The when expression is a versatile construct used for multi-way branching based on the value of an expression. It allows you to define different cases and actions to be taken depending on the value of the given expression. Here's an example:
📄️ Loop statements
In Rell, loop statements include the for, while, break, and continue statements, each serving distinct purposes for controlling program flow. This summary provides an overview of these loop statements and their applications.