From b0302a253c8fac3a7a748164cc070aca4a5996a8 Mon Sep 17 00:00:00 2001 From: atlamede Date: Thu, 6 Apr 2023 22:08:55 +0200 Subject: [PATCH] missing var --- src/nodes/logic.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/nodes/logic.js b/src/nodes/logic.js index fe273dc3f..61ed4bb85 100755 --- a/src/nodes/logic.js +++ b/src/nodes/logic.js @@ -93,10 +93,10 @@ logicAnd.title = "AND"; logicAnd.desc = "Return true if all inputs are true"; logicAnd.prototype.onExecute = function() { - ret = true; + var ret = true; for (inX in this.inputs){ if (!this.getInputData(inX)){ - ret = false; + var ret = false; break; } } @@ -119,7 +119,7 @@ logicOr.title = "OR"; logicOr.desc = "Return true if at least one input is true"; logicOr.prototype.onExecute = function() { - ret = false; + var ret = false; for (inX in this.inputs){ if (this.getInputData(inX)){ ret = true; @@ -159,8 +159,8 @@ logicCompare.title = "bool == bool"; logicCompare.desc = "Compare for logical equality"; logicCompare.prototype.onExecute = function() { - last = null; - ret = true; + var last = null; + var ret = true; for (inX in this.inputs){ if (last === null) last = this.getInputData(inX); else