TestingDocs.com
Software Testing website
  • Automation
    • Selenium
    • JBehave Framework
  • Tutorials
    • MySQL Tutorials
    • Testlink
    • Maven
    • Git
  • IDEs
    • IntelliJ IDEA
    • Eclipse
  • Flowcharts
    • Flowgorithm
    • Raptor
  • About

Raptor Flowchart

Variables in Raptor Flowchart

Overview

In this tutorial, we will learn how to declare and use variables in the Raptor flowchart. We need variables to store data and retrieve data used in the flowchart.

What is a Raptor variable?

Computer programs store data in memory. A variable is a name that points to the memory location where we store data. The data value stored in the variables has a datatype. In the Raptor flowchart, we have Numbers, Strings and Arrays.

 

Raptor variables flowchart

i and name are variables that hold Number and String data values respectively.

Declare Variables

Raptor variables are automatically created when we first use them in the flowchart. For example, when we use the Input symbol to store the data entered by the user.

 

Raptor Flowchart variable

Assign values

We can assign values to a variable using the Assignment flowchart symbol. During the flowchart run, the values that are stored in a variable may change based on the flowchart logic.

name <- “Emma”

 

Variable Assignment Raptor Flowchart

 

Naming variable names

Raptor variables should start with an alphabet letter and can only contain letters, digits, and underscore. It’s recommended to keep the variable names clear, meaningful, and descriptive. Programmers should also stick to a naming convention for naming the variable’s names.

 

Naming convention Example
use of underscore employee_name
CamelCase EmployeeName

 

Some invalid variable names are shown below:

SNo Rule Example
1 Variable names cannot start with digits. 7rate
2 Variable names cannot contain illegal characters. Student$Name
3 Variable names cannot empty spaces. interest rate

Raptor Tutorials on this website can be found at:

https://www.testingdocs.com/raptor-a-flowchart-tool/

RAPTOR official website: https://raptor.martincarlisle.com/

Related Posts

Install RAPTOR Avalonia CentOS

Raptor Flowchart /

Install RAPTOR Avalonia on CentOS

RAPTOR Avalonia Edition Windows

Raptor Flowchart /

Download RAPTOR Avalonia Edition on Windows

RAPTOR Editions

Raptor Flowchart /

RAPTOR Editions

RAPTOR flowcart to write to a file output

Raptor Flowchart /

Write to a file with RAPTOR flowchart

Sum of Squares Array Elements Modular Approach

Raptor Flowchart /

Sum of Squares of Given Array Elements

‹ RAPTOR flowchart useful tips› Debugging a RAPTOR Flowchart

Recent Posts

  • Update draw.io on Windows
  • Install RAPTOR Avalonia on CentOS
  • Download RAPTOR Avalonia Edition on Windows
  • npm doctor command
  • Build & Run CLion Project
  • Create New CLion C Project on Windows
  • Configure CLion Toolchains on Windows
  • Launch CLion IDE on Windows
  • Activate CLion IDE
  • CLion IDE for C/C++ Development

Back to Top

Links

  • Contact
  • Privacy Policy
  • Cookie Policy

www.TestingDocs.com