Create number variable
collection.createNumberVariable(name, value)
Create a number variable with a name and value for the variable.
Syntax
Parameters
- name : string - Name of the variable
- value: number | NumberVariable | CustomValue - Value of the variable.
- options: object - Optional parameters for the variable.
- mode: VariableMode - The variable mode object. Get the variable mode by using the
collection.getVariableModeByName()method.
- mode: VariableMode - The variable mode object. Get the variable mode by using the
Returns
Promise<NumberVariable>
A Promise that resolves to a NumberVariable object.