TestingDocs.com
Software Testing website
  • Automation
    • Selenium
    • TestNG
  • Tools
    • 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 conventionExample
use of underscoreemployee_name
CamelCaseEmployeeName

 

Some invalid variable names are shown below:

SNoRule Example
1Variable names cannot start with digits.7rate
2Variable names cannot contain illegal characters.Student$Name
3Variable 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

RAPTOR flowcart to write to a file output

Raptor Flowchart /

Write to a file with RAPTOR flowchart

Raptor Flowchart /

Simulation of probabilities die roll using Raptor Flowchart

String length

Raptor Flowchart /

String Operations in Raptor Flowchart

Demo flowchart

Raptor Flowchart /

Raptor Subcharts Demo Flowchart

User input validation in Raptor flowchart

Raptor Flowchart /

User input validation in Raptor flowchart

‹ RAPTOR flowchart useful tips› Debugging a RAPTOR Flowchart

Recent Posts

  • Antivirus Products for Windows 11 PC
  • Install CodeBlocks IDE on Windows 11
  • Location Privacy Settings on Windows
  • Windows 11 Virus & Threat Protection
  • Download & Install Python on Windows 11
  • Cumulative Update for Windows 11 Version
  • Test execution speed in Selenium IDE
  • Check Windows 11 Free Upgrade
  • Download IntelliJ IDE on Windows 11
  • New MySQL Connection in Workbench

Back to Top

Automation Tutorials

  • JBehave Tutorial
  • Selenium Tutorial
  • TestNG Tutorial
  • JUnit Tutorial

Links

  • Contact
  • Privacy Policy
  • Cookie Policy

www.TestingDocs.com

Go to mobile version