In this tutorial, we will learn about the Flowgorithm Output Statement. An Output statement allows you to view the information on the Console Window.
An Output statement evaluates an expression and then displays the result on the Console Window. By default, the output statement is represented with a green color parallelogram.
Add Output Symbol
Click on the flow control line. The pop-up window will appear with the flowchart symbols/figures.
Move the mouse over the green parallelogram with the wording “Output”. It will be highlighted with
a blue rectangle.
Click on the figure with the left mouse button and the output figure will be inserted into the flowchart diagram. Initially, the figure will appear colored in gray. The gray color indicates that the output figure is incomplete. We need to provide more information to the figure in order to function.
Double click on the output figure to enter the edit mode. We can provide an expression that needs to appear on the Console window.
For example, to display the text “Hello, World” on the Console Window.
Click on the OK button to continue.
We can check the New Line option if required. This option acts like the Carriage Return function for the output. This option affects the display of the next output messages with or without a carriage return. Flowgorithm will create an output message on a new line for each Output symbol.
The green color of the output figure will indicate successful creation.
|XML||Flowchart Output Symbol|
|<output expression=”” newline=”True”/>
The XML tag for the Output symbol. The symbol is empty and the expression that prints on the console window are not defined yet.
|<output expression=”"Hello World!"” newline=”True”/>
The XML tag for the Output symbol with expression defined. The symbol prints Hello World! message onto the console window.
Print two lines of text on the Console window using two Output symbols.
Correct the error in the flowchart. The aim of the programmer is to print Hello onto the Console window. However, the flowchart throws the following error:
Variable Not Declared
Flowgorithm flowchart tutorials on this website:
For more information on the Flowgorithm tool, please visit the official website at: