From a026a1ec8d0c66a62b3bc9e7bbeff1fdfa23951c Mon Sep 17 00:00:00 2001 From: lathan britz Date: Mon, 10 Apr 2023 14:18:37 -0400 Subject: [PATCH] miggins vrs inX --- src/nodes/logic.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/nodes/logic.js b/src/nodes/logic.js index 61ed4bb85..1a80a8ecf 100755 --- a/src/nodes/logic.js +++ b/src/nodes/logic.js @@ -94,7 +94,7 @@ logicAnd.desc = "Return true if all inputs are true"; logicAnd.prototype.onExecute = function() { var ret = true; - for (inX in this.inputs){ + for (var inX in this.inputs){ if (!this.getInputData(inX)){ var ret = false; break; @@ -120,7 +120,7 @@ logicOr.desc = "Return true if at least one input is true"; logicOr.prototype.onExecute = function() { var ret = false; - for (inX in this.inputs){ + for (var inX in this.inputs){ if (this.getInputData(inX)){ ret = true; break; @@ -161,7 +161,7 @@ logicCompare.prototype.onExecute = function() { var last = null; var ret = true; - for (inX in this.inputs){ + for (var inX in this.inputs){ if (last === null) last = this.getInputData(inX); else if (last != this.getInputData(inX)){