Extensions/ComfyUI-LogicMath
ComfyUI Extension

ComfyUI-LogicMath

Utilities for Math and Logic operations.

By silveroxides·Created 6 months ago·Updated 2 months ago· 3
silveroxides/ComfyUI-LogicMath
Nodes28
On cloudLocal install
Categoryutils/logic, utils/math
Stars3
Updated2 months ago

Nodes (28)

AND

The gate your workflow is missing

utils/logic
IF

The conditional router that turns your workflow into actual logic

utils/logic
NOT

Flip a boolean with one wire

utils/logic
OR

True if any of your booleans is true

utils/logic
XOR

True when an odd number of inputs are true

utils/logic
Absolute

Kill the minus sign

utils/math
Add

Add 2 to 10 numbers in one node instead of a chain

utils/math
Aspect Ratio

9 without mental math

utils/math
Ceil

Round a number up to a clean integer

utils/math
Clamp

Keep a value inside a range, no Max/Min chain

utils/math
Compare

Turn numbers into booleans for your IF node

utils/math
Cosine

The smooth oscillator that makes animation actually feel alive

utils/math/trigonometry
Divide

Divide without the divide-by-zero crash

utils/math
Floor

Round a number down to a clean integer

utils/math
Maximum

The biggest of 2 to 10 numbers, in one node

utils/math
Minimum

The smallest of your numbers, without a comparison chain

utils/math
Modulo

The node for every Nth frame, batch and cycle

utils/math
Multiply

The 2-to-10-input multiplier that respects your ints

utils/math
Number Convert

The node for the day ComfyUI stops accepting your number

utils/math
Math Operation (Example)

One combo box for add, subtract, multiply, divide

utils/math
Power

Raise any number to any exponent, no Python required

utils/math
Round

Turning 2.9999999 into the integer everyone else needs

utils/math
Sine

The boring math node that gives animation its pulse

utils/math/trigonometry
Square Root

Square root without the crash on negative numbers

utils/math
Subtract

Order matters, and this node is why

utils/math
Tangent

The trig node for transitions, and the one to be careful with

utils/math/trigonometry
Number To String

Turn a number into text for filenames and prompts

utils/math
String To Number

Turn text into an INT and a FLOAT

utils/math
Readme

ComfyUI-LogicMath

Logic operators and Math nodes based on a PR that never got merged.