User-defined variables
Last updated
Last updated
You need to have a robot open to use the Variables window.
Click Add/Modify button on the Variables pane. The Variables window will appear.
Click the new button and select the type of the variable to create a variable.
Type name and value and click save.
The initial value depends on the selected variable type. If there is a mismatch between type and value, an error will be shown.
Only the following types of variables can be created using the variable window. There are many more types of Automatic Variables created by activities, they are only for passing data between activities and cannot be created by a user.
Type
Assignable Values
String
String and numbers. e.g. 2, abc
Integer
Integers e.g. 123
System.Boolean
Boolean values True, False
Type
Assignable Values
Date
Date values - 12/05/2012
DateTime
Datetime values - 12-01-2021-12:11:33
File
A path to a file
Folder
A path to a folder
Process
The name of a windows process. e.g. svchost
Application
The name of a windows application. e.g. notepad.exe
List
Type
Assignable Values
Computed
A C# script to access properties exposed by the variables.
The Integer value type represents negative and positive integers. It can't store a floating-point number or a character.
RawValue
Gets the value of the variable.
LongValue
Gets the int64 value of the variable.
IntValue
Gets the int32 value of the variable.
RawType
Gets the type of the value of the variable.
A string value stores text information as a collection of characters.
Property
Description
Length
Gets the number of characters
A Boolean or System. Boolean type has values of either true
or false
.
Property
Description
FalseString
Represents the Boolean value false
as a string
TrueString
Represents the Boolean value true
as a string.
Object or System. Object variables are generic and they can hold any type of data at run-time.
None