Creer Variable
Creates or updates a variable in the workflow context. The variable is accessible by subsequent blocks via the {{variableName}} syntax.
Parameters
| Parameter | Type | Required | Variable | Description |
|---|---|---|---|---|
variables | array | Yes | No | List of variables to create. Each variable has a name, type, and value. |
editorMode | choice (individual, raw-json) | No | No | Editor mode: individual form per variable or raw JSON input. (Default: "individual") |
rawJson | text | No | No | Raw 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.