Flowgorithm Identifiers [ 2024 ]
Flowgorithm Identifiers
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.
- Identifiers must start with a letter followed by a series of letters or numbers. The first letter should be from a-z or A-Z.
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.
- A valid identifier should not contain whitespace.
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
- Identifiers cannot be reserved words or predefined keywords.
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.
- Identifiers are not case-sensitive.
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: