About Variables

Created by akaBot Support, Modified on Thu, 25 Jul, 2024 at 5:49 PM by akaBot Support

When robots perform actual tasks, temporary necessary information (e.g., ID/PW, folder names) often needs to be remembered. This can be efficiently managed using the commonly utilized feature known as variables.

1. What is a Variable?

A variable is a "box for storing values." From the perspective of developing a robot, it serves as a place where information temporarily remembered by the robot is stored.

Variables are used for defining, changing, and referencing that information.

For example, if you want a robot to log into a business system, you first define two variables: "ID" and "PASSWORD." Then, retrieve the ID and password from a specific Excel file and store them in the defined variables. Finally, the robot logs into the system by referencing the information stored in the "ID" and "PASSWORD" variables.

2. About Data Types

Various types of information (such as strings and numbers) can be stored in variables. These types are commonly referred to as "data types." The table below introduces data types commonly used by robots.

Data Type
Description
Example
String
Used for handling text
Example: "A" (Enclosed in quotes)
Int32
Used for handling integers (without decimal points)
Example: 1  (Mainly for calculations)
Double
Used for handling numbers (including decimals)
Example: 0.1  (Mainly for decimal calculations)
Boolean
Used for handling boolean values
Example: True or False  (Mainly used in conditional branches. Default is False.)
Array
Used for handling arrays
Example: { "A", "B" }  (Stores single or multiple values within braces. The example is a String[].)
DataTable
Used for handling table-like data (rows and columns)
Structured format with rows and columns. (Mainly used for Excel and CSV operations.)
DateTime
Used for handling dates
Example: 2020/04/01 (Date display format can be specified. Initial value is 0001/00/00 0:00:00.)

Understanding and utilizing variables effectively can greatly enhance the robot's ability to perform complex tasks by remembering and manipulating necessary information dynamically.


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article