Apply auto-build changes

make-only-subtitle-default
HaveAGitGat 2 years ago committed by github-actions[bot]
parent e5dc35064f
commit 7e6498e3c9

@ -47,7 +47,7 @@ var details = function () { return ({
inputUI: { inputUI: {
type: 'text', type: 'text',
}, },
tooltip: 'Value of variable to check', tooltip: "Value of variable to check. \n For == condition, you can specify multiple values separated by comma. For example: value1,value2,value3\n If the variable matches any of the values, the condition is true.\n ",
}, },
], ],
outputs: [ outputs: [
@ -100,8 +100,9 @@ var plugin = function (args) {
targetValue = String(targetValue); targetValue = String(targetValue);
var outputNumber = 1; var outputNumber = 1;
if (condition === '==') { if (condition === '==') {
if (targetValue === value) { var valuesArr = value.trim().split(',');
args.jobLog("Variable ".concat(variable, " of value ").concat(targetValue, " matches condition ").concat(condition, " ").concat(value)); if (valuesArr.includes(targetValue)) {
args.jobLog("Variable ".concat(variable, " of value ").concat(targetValue, " matches condition ").concat(condition, " ").concat(valuesArr));
outputNumber = 1; outputNumber = 1;
} }
else { else {

Loading…
Cancel
Save