Skip to main content

Creer Variable

Creates or updates a variable in the workflow context. The variable is accessible by subsequent blocks via the {{variableName}} syntax.

Parameters

ParameterTypeRequiredVariableDescription
variablesarrayYesNoList of variables to create. Each variable has a name, type, and value.
editorModechoice (individual, raw-json)NoNoEditor mode: individual form per variable or raw JSON input. (Default: "individual")
rawJsontextNoNoRaw JSON defining the variables ('raw-json' mode only).

Output

Output variable : variable

{
"name": "...",
"value": "..."
}

Example

Create a counter variable.

Input :

{}

Output :

{"name": "compteur", "value": 42}
Tip

The name must be alphanumeric and start with a letter. {{variable.value}} contains the defined value.