Does Flowgorithm Interpreter Ignore Comments?
Does Flowgorithm Interpreter Ignore Comments?
Answer
The Flowgorithm interpreter does ignore comments. Comments are only for human readers. The short answer to the question is:
Yes.
Explanation
Comments in Flowgorithm are used for documentation purposes to help others
understand the logic of your program, but they do not affect how the program runs.
When the flowchart is run, the Flowgorithm interpreter will not execute the comments.
Example
Let’s understand this concept with the help of an example. Consider the following flowchart with three symbols.
- One output symbol before the comment.
- Flowchart comment.
- One output symbol after the comment.
Execute the flowchart. Click on the green play button to run the flowchart.
Observe the flowchart output.
Flowchart Output
Notice that the flowchart interpreter ignored the comment and the output only consists of only two outputs. Note that this is not the complete test to say the comment symbol is ignored. This is because some flowchart symbols do not output to the screen but may create side effects.
—
Flowgorithm Tutorials
Flowgorithm flowchart tutorials on this website: