Skip to main content

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