Assign Value to Variable

Object to assign value to an existent variable.

Settings

To use this object it's necessary to select the variable and enter the desired value.

General object layout

Filling in the object:

Field
Description

Title

It's the object's name and doesn't need to be changed, unless you want to identify it to make it easier to find on the robot, for example: "Assign Variable Value - New Information".

Select Variables

Name of an already declared variable.

Variable Value

New value to be replaced in the variable.

Add Variable

Option to place the value in more variables.

INTERPOLATION

This is a technical concept used in programming and you don't need to worry about changing it at this point.

WHAT ARE VARIABLES

Variables are important structures in any programming, regardless of the language used to implement the codes or programs. They can be understood as a box, where data is stored temporarily or permanently and which is manipulated during the execution of the program.

Source: usp.br

PREREQUISITES

  • Note that it's possible to assign a value to any variable created within the robot, but one of the most common prerequisites would be to use the Declare Variable object.

USE CASES

  • Use it to assign a value to a variable.

  • Storing data efficiently to be used in the correct execution of the robot.

  • More efficient handling in robot configuration.

Example

Declare a variable and assign a value using a message box to view it.

ITEMS USED IN THE ROBOT

STEP 1: To set Declare Variable.

Declare Variable setting

STEP 2: To set Assign Variable Value.

Assign Variable Value setting

STEP 3: To set Message Box.

Message Box setting

STEP 4: Run the robot and check the actions.

Successful robot example execution - Assign Variable Value

Download It

Last updated