theUpsider / ComfyUI-Logic

Logic nodes to perform conditional renders based on an input or comparision
125 stars 17 forks source link

ComfyUI Logic Nodes Extension - 🔬

This repository contains an extension to ComfyUI that introduces logic nodes and conditional rendering capabilities:

image

NOTE: This extension is still in development and may contain bugs. Please report any issues you encounter. New features are in development!

Installation

Nodes

Compare

Compares two inputs (a and b) based on the provided comparison operator. Supported operators include:

Int

Accepts an integer value and returns it.

String

Accepts a string value and returns it.

Float

Accepts a float value and returns it.

Bool

Accepts a boolean value and returns it.

If ANY return A else B

Pass the value of the IF_TRUE node if the ANY input is True, otherwise it passes the IF_FALSE node.

DebugPrint

Prints the provided input to the console. Useful for debugging.

Note: The names have a globally unique identifier: -🔬 so dear developers please refrain from also using this name for other nodes.

Author