missing var

This commit is contained in:
atlamede
2023-04-06 22:08:55 +02:00
parent 8bd5315ba6
commit b0302a253c

View File

@@ -93,10 +93,10 @@
logicAnd.title = "AND"; logicAnd.title = "AND";
logicAnd.desc = "Return true if all inputs are true"; logicAnd.desc = "Return true if all inputs are true";
logicAnd.prototype.onExecute = function() { logicAnd.prototype.onExecute = function() {
ret = true; var ret = true;
for (inX in this.inputs){ for (inX in this.inputs){
if (!this.getInputData(inX)){ if (!this.getInputData(inX)){
ret = false; var ret = false;
break; break;
} }
} }
@@ -119,7 +119,7 @@
logicOr.title = "OR"; logicOr.title = "OR";
logicOr.desc = "Return true if at least one input is true"; logicOr.desc = "Return true if at least one input is true";
logicOr.prototype.onExecute = function() { logicOr.prototype.onExecute = function() {
ret = false; var ret = false;
for (inX in this.inputs){ for (inX in this.inputs){
if (this.getInputData(inX)){ if (this.getInputData(inX)){
ret = true; ret = true;
@@ -159,8 +159,8 @@
logicCompare.title = "bool == bool"; logicCompare.title = "bool == bool";
logicCompare.desc = "Compare for logical equality"; logicCompare.desc = "Compare for logical equality";
logicCompare.prototype.onExecute = function() { logicCompare.prototype.onExecute = function() {
last = null; var last = null;
ret = true; var ret = true;
for (inX in this.inputs){ for (inX in this.inputs){
if (last === null) last = this.getInputData(inX); if (last === null) last = this.getInputData(inX);
else else