UNPKG

@joshfarrant/shortcuts-js

Version:
24 lines 755 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * @action Add to Variable * @section Actions > Scripting > Variables * @icon Variable * * Appends this action's input to the specified variable, creating the variable if it does not exist. This allows you to make a variable hold multiple items. * * ```js * // Append the input to the variable named 'My Var' * addToVariable({ * variable: variable('My Var'), * }); * ``` */ const addToVariable = ({ variable, }) => ({ WFWorkflowActionIdentifier: 'is.workflow.actions.appendvariable', WFWorkflowActionParameters: { WFVariableName: variable.Value.VariableName, }, }); exports.default = addToVariable; //# sourceMappingURL=addToVariable.js.map