Control statements allow you to control the flow of execution
of the flowchart.
Types of Control Statements
Types of control statements in the Flowgorithm are as follows:
- Sequence
- Selection
- Repetition
- Call
Sequence
Statements are executed in sequence, meaning one after another by default. This is the default control flow of the flowchart, from top to bottom. You can use the other control statements, to change this default flow.
Selection
The selection control statement allows you to execute certain code blocks based on whether a condition is True or False. The Flowgorithm selection statement is the If statement. It checks the specified condition and executes a code block if it is true.
Repetition
The repetition control statement allows you to execute a code block multiple times. The Flowgorithm supports the following control statements.
- For Loop
- While Loop
- Do Loop
Call
The Call symbol transfers the control to the invoked function. The flowchart interpreter executes the function and returns the control to the next flowchart symbol after the Call symbol.