Actions: Variables

Clear Variable

Set variable to an empty value.

Argument Description
VariableName The variable to set empty.

Count Lines In Variable

Gets the number of lines in a variable.

Argument Description
Variable A variable where the lines will be counted.
Output The location where the number of lines will go (variable or text or field element).

Delete Array Element

Create a path to access the value of nested elements.

Argument Description
Array Select an array to modify.
Path A series of slash delimited elements to remove data from an array.

Example:
Original array:
myUserData/email/kayla@acme.com
myUserData/zipCode/98027

Providing ‘zipCode’ for the path, we are left with the following in our array:
myUserData/email/kayla@acme.com

Find Value In Array

Find a specific value of a key inside the records of an array. This returns the first value that is found, so it works on arrays where the values are unique to each record.

Argument Description
Output Where do you want to save the result?
Key The key to query in the array
Operator The comparison operator for comparing values in the table against the input value.
KeyToReturn The key of the found record to return
Array Select an array to search
Value The value to compare the array record key against
ReturnAs If found, how should the result be returned?

Get Array Value

Create a path to access the value of nested elements.

Argument Description
Output The returned value can be placed in a variable or an element.

Examples:
Path: cdb/cdbRecordID/
output: 6ea1f2aa-b7af-426e-879e-3c2caa54fa7a

Path: email/
output: mark@acme.org
Array Select an array to parse.
Path A series of slash delimited elements to access a value of an array.

Get Line From Variable

Gets the specified line from a variable.

Argument Description
Output The location where the line will go (variable or text or field element).
Variable A variable where the line will be retrieved from.
LineNumber A variable or input specifying which line to get.

Set Array Value

Create a path to access the value of nested elements.

Argument Description
Value This value is intended to replace the old value. This may come from a variable, an element, or raw input.

Examples:
Old value: userDetails/email/ = tom@acme.com
New value: userDetails/email/ = andre@acme.com

Old value: userDetails/zipCode/ = 92592
New value: userDetails/zipCode/ = 98027
Array Select an array to modify.
Path A series of slash delimited elements to modify a value of an array.

Set a Variable

Set a variable based on input, variable, or array.

Argument Description
ThisVariable The variable to set the value of.
ThisValue The value to set variable to (input or another variable)

This chapter was last updated on Wed 8 Feb 2023 14:24:05 GMT