Create percentage variable
collection.createPercentageVariable(name, value)
Create a percentage variable with a name and value for the variable.
Syntax
Parameters
- name : string - Name of the variable
- value: number | PercentageVariable | 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<PercentageVariable>
A Promise that resolves to a PercentageVariable object.