json
// config.json
{
"role": "condition",
"type": "test-condition-addon",
"label": "Condition Addon",
"description": "Test Condition Addon Description",
"defaultValues": {
"testText": "",
},
"fields": [
{
"type": "text",
"name": "testText",
"label": "Test Text",
"description": "Enter the secret number."
}
]
}
js
// script.js
conditionMet=(command.testText=="123"); // if command.testText equal to "123" the value of conditionMet will be true else will be false!