Assigning Values to Variables
Assigning Literal Values
A literal value, such as a string, number, or object, can be assigned to a variable. For example, myNumericVar = 6
or myStringVar = '123'
.
myStringVar
is assigned the value ‘hello’.
To assign a variable to the literal value of another variable, enclose the variable in {{ }}, as shown below. In this example, the string variable myStringVar
is assigned to the value of myStringVar2
. If myStringVar2
has the value of ‘goodbye’, after this assignment, the value of myStringVar
will also be set to ‘goodbye’. This notation can also be used in other activities whenever the literal value of the variable is used. It is important to note that this syntax only works for variables of type: String
.

Assigning Expressions
It is also possible to calculate expressions based on values of variables, throughputs, and outputs from activities that have previously run in a flow, and then assign the output of the expression to a variable. For example, myNumericVar = myVar1 + myVar2 or myStringVar = StringReplace(myStringVar2, 'abc', 'xyz')
.
To assign an expression to a variable, ensure that the variable option is set to Expression (fx), as shown below. In this example, the string variable myStringVar
is assigned the value of the variables str1
, str2
, and str3
. If the values are one, two, and three, respectively, then the value of myStringVar
will be ‘onetwothree’ after this variable assignment completes.
