Skip to content
Node packVerifiedExternal
Open source

ComfyUI-Logic

Logic nodes to perform conditional renders based on an input or comparision

Maintainer@theUpsiderCgrade

Package profile

Status
Verified
Publisher
@theUpsider
Source
GitHub
Stars
233

README

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

image

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_nodes folder 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, Float and Bool data 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 == b
  • a != b
  • a < b
  • a > b
  • a <= b
  • a >= 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: -πŸ”¬ so dear developers please refrain from also using this name for other nodes.

Author

Nodes in this pack

9 nodes
  • Bool-πŸ”¬
  • Compare-πŸ”¬
  • DebugPrint-πŸ”¬
  • default
  • Float-πŸ”¬
  • If ANY execute A else B-πŸ”¬
  • If ANY return A else B-πŸ”¬
  • Int-πŸ”¬
  • String-πŸ”¬

Related resources

32 connections
Used byLTX 0.9.6_Distil i2v, With Conditioning β€” v1.0Used bySDXL_WinterRender β€” v1.0Used byAutoBatch ZeroDistort 8K Upscaler-批量θ‡ͺ适应8Kι›Άε˜ε½’ζ”Ύε€§ζ΅ β€” 2workflow for autoUpscaleUsed byFlux Kontext True Inpainting With Krita (Nunchaku compatible) β€” v2.1Used byWan2_2 Fun VACE Video Face Swap With High Fidelity β€” v1.0Used byLTX-2 19B GGUF 12GB ComfyUI Workflows 5 TOTAL! t2v/i2v/v2v/ia2v/ta2v β€” I WANT ALL THE THINGSv2.0Used byZiT Studio β€” v1.1Used byInpaint Anyone or Anything Anywhere Doing Whatever Seamlessly With Krita, Kontext, and Nunchaku β€” v2.0Used byBasic Krea 2 Workflow β€” Krea 2 (with Face Fix) β€” i2i+FaceFix - recommendedUsed byAutomatic video upscaling powered by SeedVR β€” v1.0Used byJonXL's Multi Wan2.2 T2I / T2V / I2V + Clip Extender Workflow (+Upscaling & Interpolation)Used byLTX-2 19B GGUF 12GB ComfyUI Workflows 5 TOTAL! t2v/i2v/v2v/ia2v/ta2v β€” ia2v with two samplersUsed byZiT Studio β€” v1.0Used byLTX-2 19B GGUF 12GB ComfyUI Workflows 5 TOTAL! t2v/i2v/v2v/ia2v/ta2v β€” I WANT ALL THE THINGS!Used byJonXL's HQ Photo Creator (Workflow for Wan 2.1 / 2.2 Low)Used byLTX-2 19B GGUF 12GB ComfyUI Workflows 5 TOTAL! t2v/i2v/v2v/ia2v/ta2v β€” Image Audio 2 Video V1.0Used byMPI Random Prompt Gen β€” v3.1Used byInpaint Anyone or Anything Anywhere Doing Whatever Seamlessly With Krita, Kontext, and Nunchaku β€” v3.0Used byTrue Inpainting With Kontext (Nunchaku compatible) β€” v1.0Used byJonXL Top 10 Video Joiner + Interpolate + UpscaleUsed byBasic Krea 2 Workflow β€” Krea 2 (with Face Fix) β€” img2imgUsed bySimple Kontext i2i (Nunchaku compatible) β€” v1.0Used byLTX-2 19B GGUF 12GB ComfyUI Workflows 5 TOTAL! t2v/i2v/v2v/ia2v/ta2v β€” Image-Audio-2-Video V2Used byJonXL Multi Wan 2.1 + 2.2 Advanced V5 AIO Workflow - T2I T2V I2V FLF2V (Trim, Extend, Upscale, Interpolate)Used byDonutsDelivery SDXL Workflow (Simplified) - Upscale, Facedetailer, Ipadapter β€” MiniDonut v6Used byBasic Krea 2 Workflow β€” Krea 2 (with Face Fix) β€” t2i + Ultimate Face FixUsed byLTX-2 19B GGUF 12GB ComfyUI Workflows 5 TOTAL! t2v/i2v/v2v/ia2v/ta2v β€” V2V Extend V1.0Used byLTX-2.3 22B GGUF WORKFLOWS 12GB VRAM β€” v1.0Used byFrame-by-Frame Image-to-Image Stable Diffusion workflow β€” v1.0Used byImage Outpainting - Vace + Wan 2.1 β€” v1.0Used byJonXL's DirectWan V6 - Wan 2.1 (+VACE Stand-In) + 2.2 Advanced V6 Workflow - T2I T2V I2V FLF2V (Trim, Extend, Upscale, Interpolate, Overlay) Workflow β€” Version 6.0fUsed byLTX-2 19B GGUF 12GB ComfyUI Workflows 5 TOTAL! t2v/i2v/v2v/ia2v/ta2v β€” Text Audio 2 Video V1.0

Sources

2 sources
GitHubSourceVersion 214cfba933291be224156d37bc30c25742076b44
github.com/theUpsider/ComfyUI-Logic

Verified Oct 23

GitHubSource
github.com/theUpsider/ComfyUI-Logic

Verified Oct 20

Source excerpts

1 excerpt

Source context: Repo theUpsider/ComfyUI-Logic