Skip to main content

Set Variable

Controlled node

Overview

The Set Variable node allows you to set a variable to a specific value. Every Initellectible workflow has an internal storage system that allows you to store values in variables. Variables do persist across multiple workflow events, but are cleared when the workflow is restarted. Variables are stored in a name-value pair format, and can be accesses elsewhere in the workflow with the Variable node, or via handlebars by using the name of the variable. The node will store the value at a particular name, and fires an event when the variable has been set. More complex data structures can be stored in variables with lists and dictionaries. To set specific values within a list or dictionary variable at and depth you can use the dot or slash notation. For example, if you have a list variable called myList and you want to set the value at index 2, you can use myList.2 or myList/2. The same applies to dictionaries, where you can use myDict.uniqueKey or myDict/uniqueKey to set the value at a specific key.

Inputs

InputTypeDescriptionDefault
setEventFires when the node starts running-
nameTextThe name of the variable to set the value of-
valueDataThe value to set to the variable-

Outputs

OutputTypeDescription
doneEventFires when the variable has been set

Examples