Extensions/ComfyUI-SimpleLogics
ComfyUI Extension

ComfyUI-SimpleLogics

A lightweight ComfyUI node library providing logic operators, type conversions, math utilities, and switch nodes.

By danipisca07·Created 5 months ago·Updated 5 months ago· 0
danipisca07/ComfyUI-SimpleLogics
Nodes37
On cloudLocal install
CategoryGeoCalib, SimpleLogics/Logic
Stars0
Updated5 months ago
Readme

ComfyUI-SimpleLogics

A lightweight ComfyUI node library providing logic operators, type conversions, math utilities, and switch nodes.

No extra dependencies

Installation

Clone into your ComfyUI/custom_nodes/ folder:

git clone https://github.com/danipisca07/ComfyUI-SimpleLogics

Nodes

Convert (SimpleLogics/Convert)

| Node | Description | |------|-------------| | Int → Float | Cast integer to float | | Float → Int | Truncate float to integer | | Int / Float → String | Numeric to text | | String → Int / Float | Parse text to number | | Bool → Int | True1, False0 | | Int → Bool | 0False, anything else → True |

Logic (SimpleLogics/Logic)

AND, OR, NOT, XOR, NAND, NOR — all take BOOLEAN inputs and return BOOLEAN.

Compare (SimpleLogics/Compare)

Compare Int / Compare Float — pick an operator (== != > < >= <=), returns BOOLEAN.

Math (SimpleLogics/Math)

| Node | Description | |------|-------------| | Max / Min Int | Larger / smaller of two integers | | Max / Min Float | Larger / smaller of two floats | | Clamp Int / Float | Constrain a value between min and max |

Switch (SimpleLogics/Switch)

All switch nodes take a condition (BOOLEAN) and return if_true or if_false.

| Node | Input types | |------|-------------| | Switch Int | INT | | Switch Float | FLOAT | | Switch String | STRING | | Switch Any | Any type |

Running Tests

pip install pytest
pytest tests/

Contributions?

Welcome