json
// config.json
{
"role": "variable",
"type": "test-variable-addon",
"label": "Variable Addon",
"description": "Test Variable Addon Description",
"defaultValues": {
"testText": "my variable",
},
"fields": [
{
"type": "text",
"name": "testText",
"label": "Test Text",
"description": "Enter a variable"
}
]
}
js
// script.js
commandValues=command.testText.toUpperCase(); // commandValue will hold the value of testText and export it as a value of command!
// Or as an array
// commandValues=[commandValues.toUpperCase()];