Control Structures¶
In Beremiz, control structures such as while loops and if-else conditional structures enable you to manage the flow of execution within your code.
While Loops¶
The while
loop executes a set of statements repeatedly as long as a condition
is true or not nil.
Example:
Break Statement¶
The break
keyword is used to immediately exit a while
loop, regardless of
the loop's condition.
Example:
Continue Statement¶
The continue
keyword is used to skip the current iteration of a while
loop
and proceed to the next iteration.
Example:
If-Else Conditional Structures¶
The if-else
structure allows conditional execution of code blocks based on
specified conditions.
Example: