ComfyUI-Logic
Logic nodes to perform conditional renders based on an input or comparision
Nodes (8)
A plain on/off switch that speaks BOOLEAN
How your ComfyUI workflow learns to make decisions
Reading what a workflow actually produced
A reusable decimal-number source for your workflow
The 'If' node this pack advertises is the one that doesn't ship
The ComfyUI switch that actually works
The boring node your seed wiring quietly wants
The text node at the root of every prompt branch
ComfyUI Logic Nodes Extension - 🔬
This repo is currently not maintained This repository contains an extension to ComfyUI that introduces logic nodes and conditional rendering capabilities:
- If
- Compare
- Int, String, Float, Bool
- If ANY return A else B
NOTE: This extension is still in development and may contain bugs. Please report any issues you encounter. New features are in development!
Installation
- Clone this repository into the
custom_nodesfolder of ComfyUI. Restart ComfyUI and the extension should be loaded. - Alternativly use ComfyUI Manager
- Or use the comfy registry:
comfy node registry-install comfyui-logic, more infos at ComfyUI Registry
Features
- Comparison Nodes: Compare two values using various comparison operators.
- Data Type Nodes: Convert and handle
Int,String,FloatandBooldata types. - Conditional Execution: Execute different nodes as input based on a boolean condition.
- Debugging: Print any input to the console for debugging purposes.
Nodes
Compare
Compares two inputs (a and b) based on the provided comparison operator. Supported operators include:
a == ba != ba < ba > ba <= ba >= b
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: <nodename>-🔬 so dear developers please refrain from also using this name for other nodes.
Author
- David Fischer
- GitHub: theUpsider
- Support me on BuyMeACoffee