SetVariable
public struct SetVariable : Shortcut
Sets the value of the specified variable to the input of this action.
Input: Anything
Result: (Anything) The input
-
The contents of the shortcut.
Declaration
Swift
public var body: some Shortcut { get }
-
Initializes the shortcut.
Declaration
Swift
public init(name: String, uuid: UUID = UUID(), variable: Variable)
Parameters
name
The new name of the variable.
uuid
The internal UUID of the variable, useful for building deterministic output.
variable
The contents of the new variable.