Set Variable is used to declare a variable and save it in variables
in message
, so that subsequent nodes can reference it in the form of msg.vars.get('name')
.
Parameter | Data Type | Description | Required | Default Value | Remarks |
---|---|---|---|---|---|
Variable name | string | Variable name. | Yes | None | - |
Value | any | Specific value of the variable. | Yes | None | - |
Type | string | Data type of the variable | Yes | string | - |
Operation | string | Variable operation | No | None | This parameter is available only if a variable of list or dict type exists. |
To reference variables
, you need to use the msg.vars.get('company')
expression.
The message
output by the component is as detailed below:
message Attribute |
Value |
---|---|
payload | This attribute inherits the payload of the previous component. |
error |
|
attribute | This attribute inherits the attribute of the previous component. |
variable | variable of the previous component and the variables added in the current component. |
Was this page helpful?