Flowchart symbols

Table of Contents

Previous | Top | Next

The table below describes the symbols that are used by the flowchart editor.

 

Type

Symbol

Description

Assignment operation.

Assignment Statement Symbol

Represents non-composite statements such as variable declarations or assignments.

Sub Procedure

Sub-Procedure Symbol

A special type of assignment statement that represents a call to another procedure.

If statement

If Statement Symbol

If a condition is true then the contained code is executed.

Else if statement

Else If Statement Symbol

If the main if condition is false but this condition is true then the contained code is executed.

Else statement

Any contained statements branch from the left hand side of the parent.

If the main if condition and any else if conditions are false then the contained code is executed.

Try statement

Try Statement Symbol

The contained code is executed until an exception is encountered.

Catch statement

Catch Statement Symbol

When the associated exception is thrown, it is caught and the contained code is executed.

Finally statement

Any contained statements branch from the left hand side of the parent.

The contained code is executed whether or not an exception was thrown. Typically used to ensure that resources are cleaned up properly.

Switch statement

Switch Statement Symbol

Inspects a value and directs control to the contained case or default statement.

Select statement

Select Statement Symbol

The same as the switch statement but more familiar to users of Visual Basic. The two are interchangeable.

Case statement

Case Statement Symbol

In a switch or select statement, control will be directed to the case statement when the associated value is detected. The contained code is then executed.

Default statement

Default Statement Symbol

If there is no matching case statement in a switch or select statement then the code inside the default statement will be executed.

For statement

For Statement Symbol

Loops for a given number of iterations and executes the contained code.

Foreach statement

Foreach Statement Symbol

Loops through a collection of a given type and executes the contained code.

While statement

While Statement Symbol

Loops while a condition is true and executes the contained code.

Repeat until statement

Repeat Until Statement

Loops until the condition is true and executes the contained code.

Do while statement

Do While Symbol

Loops while the condition is true and executes the contained code.