mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-29 02:32:18 +00:00
miggins vrs inX
This commit is contained in:
@@ -94,7 +94,7 @@
|
|||||||
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() {
|
||||||
var ret = true;
|
var ret = true;
|
||||||
for (inX in this.inputs){
|
for (var inX in this.inputs){
|
||||||
if (!this.getInputData(inX)){
|
if (!this.getInputData(inX)){
|
||||||
var ret = false;
|
var ret = false;
|
||||||
break;
|
break;
|
||||||
@@ -120,7 +120,7 @@
|
|||||||
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() {
|
||||||
var ret = false;
|
var ret = false;
|
||||||
for (inX in this.inputs){
|
for (var inX in this.inputs){
|
||||||
if (this.getInputData(inX)){
|
if (this.getInputData(inX)){
|
||||||
ret = true;
|
ret = true;
|
||||||
break;
|
break;
|
||||||
@@ -161,7 +161,7 @@
|
|||||||
logicCompare.prototype.onExecute = function() {
|
logicCompare.prototype.onExecute = function() {
|
||||||
var last = null;
|
var last = null;
|
||||||
var ret = true;
|
var ret = true;
|
||||||
for (inX in this.inputs){
|
for (var inX in this.inputs){
|
||||||
if (last === null) last = this.getInputData(inX);
|
if (last === null) last = this.getInputData(inX);
|
||||||
else
|
else
|
||||||
if (last != this.getInputData(inX)){
|
if (last != this.getInputData(inX)){
|
||||||
|
|||||||
Reference in New Issue
Block a user