Keywords

The Pseudocode Editor accepts the following keywords:

Keyword Description
If Representation of “if” statement in design and code. Logic inside this statement will execute based on a condition.
Else If Representation of “else if” statement in design and code. Valid inside “if” statement. Logic inside this statement will execute based on a condition and when the preceding conditions have failed in the parent “if” statement.
Else Representation of “else” statement in design and code. Valid inside “if” statements. Logic inside this statement will execute when all preceding conditions have failed in the parent “if” statement.
Try Representation of “try” statement in design and code. Logic inside this statement will be executed until an exception is thrown.
Catch Representation of “catch” statement in design and code. Valid inside “try” statements. Logic inside this statement will execute if a given exception has been thrown by the parent “try” statement.
Finally Representation of “finally” statement in design and code. Logic inside this statement will execute regardless of whether an exception has been thrown (and optionally caught) or not.
For Representation of “for” statement in design and code. Logic inside this statement will execute when a counter variable is within a given range.
Foreach Representation of “foreach” statement in design and code. Logic inside this statement will execute for each iteration in a collection.
While Representation of “while” statement in design and code. Logic inside this statement will execute while a condition evaluates to true.
Repeat Representation of “repeat” statement in design and code. Logic inside this statement will execute at least once and then until a condition is met.
Switch Representation of “switch” statement in design and code. This statement can encapsulate many “case” statements for varying conditions and an optional “default” statement.
Case Representation of “case” statement in design and code. Valid inside “switch” statement. Logic inside this statement will execute when a condition is met.
Default Representation of “default” statement in design and code. Valid inside “switch” statements. Logic inside this condition will execute if none of the “case” conditions were met.

If a statement doesn’t match any of the defined keywords then it is termed an assignment statement. You can use it to perform simple statements such as initialisation of a variable, calling a method or to encompass a group of statements that perform a complete task.

Code Rocket Designer

From

£99.95

Standalone application for detailed software design and visualization.

More Information

Code Rocket for Visual Studio

From

£99.95

Code Rocket design support integrated with Visual Studio.

More Information

Code Rocket for Eclipse

From

£99.95

Code Rocket design support integrated with Eclipse.

More Information

Documator

From

£74.99

per year (after loyalty discount)

Add automated Code Rocket design support for your build process!

More Information