Site icon TestingDocs.com

Flowgorithm Identifiers

Overview

In this tutorial, we will learn about Flowgorithm Identifiers and the naming conventions. An identifier uniquely identifies a variable in the flowchart. A Flowgorithm identifier is a unique name given to the variable or function in the flowchart. The flowchart programmer may use multiple variables in the flowchart.

We need to tell Flowgorithm before using a variable or user-defined function. We can use the Declare flowchart symbol.

Naming Conventions

Flowgorithm follows some naming conventions we must adhere to while naming the variables.

For example, a valid identifier name is: length

An example of an invalid identifier name is: 1foo

The variable name starts with a digit. The first character should not be a digit. Flowgorithm will generate a syntax error for the invalid identifier names.

 

For example, Student Name is an invalid identifier because it contains a white space. The red color on the symbol indicates an error.

Many languages allow underscore( _ )  and other special characters within identifiers. However, Flowgorithm doesn’t allow special characters within identifier names. For example, the following variable names are invalid in Flowgorithm. $HourlyWage, hourly_wage

For example, the following identifier sin is invalid. sin is a pre-defined function name in Flowgorithm. It cannot be used as an identifier name.

The following identifier True is also invalid. True is a pre-defined keyword in the flowchart that represents the boolean state.

For example, the following identifiers name, NAME are the same in the Flowgorithm flowchart.

Flowgorithm Tutorials

Flowgorithm flowchart tutorials on this website:

https://www.testingdocs.com/flowgorithm-flowchart-tutorial/

Flowgorithm Website

For more information on the Flowgorithm tool, please visit the official website at:

http://flowgorithm.org/

Exit mobile version