createVariable
Creates a variable with a given name and resolved type inside a collection.
Signature
createVariable(name: string, collection: VariableCollection, resolvedType: VariableResolvedDataType): Variable
Parameters
name
The name of the newly created variable
collection
A variable collection. Make sure to pass a collection object here; passing a collection ID is deprecated.
resolvedType
The resolved type of this variable