comfy-conditionals
БесплатноБез исполняемых скриптовНе проверенComfyUI predicate/boolean nodes: compare, AND/OR/XOR/NOT, ternary, null/empty/type probes, ExecutionBlocker. Use when forming the boolean that drives a…
от laurigates★ 61 звезда на GitHubОб этом скилле
ComfyUI conditionals
Predicates → boolean → branch. How the decision is formed, not where the signal goes after.
Four packs contribute predicate primitives. The split:
| Pack | Primary niche |
|---|---|
comfyui-easy-use |
easy ifElse, easy compare, easy blocker, and the easy is* probes — the broadest, most-used predicate kit |
comfyui-impact-pack |
ImpactCompare + ImpactConditionalBranch (lazy) + ImpactIfNone + ImpactConditionalStopIteration (Impact-iterator loop control) |
comfyui_essentials |
SimpleCondition (ternary), SimpleComparison (typed, epsilon-aware), SimpleMathCondition (boolean from math) |
comfyui-logicutils |
Bit-banging + regex-on-strings logic gates: AContainsB, bitwise And/Or/Xor/Not/Shift, generic Invert |
When to Use This Skill
| Use this skill when... | Use instead when... |
|---|---|
| Forming the boolean/predicate that drives a switch or blocker in a workflow | Routing the signal after the decision is made -> comfy-flow-control |
| Comparing values, combining booleans, detecting null/empty | Computing a numeric (non-boolean) value -> comfy-math-strings |
Sources of truth
custom_nodes/comfyui-easy-use/py/nodes/logic.py— ifElse, compare, blocker, is* probescustom_nodes/comfyui-impact-pack/modules/impact/special_samplers.py— ImpactCompare, ImpactConditionalBranchcustom_nodes/comfyui_essentials/misc.py— SimpleMath / SimpleCondition / SimpleComparisoncustom_nodes/comfyui-logicutils/logic_gates.py— logic gate nodes
Which compare node?
| Need | Best node | Why |
|---|---|---|
Compare two ANY values, any op (==, !=, <, >, <=, >=) |
easy compare |
Multi-op switcher widget, no type lock |
| Compare two INT/FLOAT, return BOOLEAN | ImpactCompare |
Op picker (a=b, a<>b, a>b, a<b, a>=b, a<=b, tt/ff constants) |
| Compare two FLOAT with epsilon tolerance | SimpleComparison (essentials) |
Floats are unsafe under == — epsilon-aware |
| Compare a string against a regex / substring | LogicGateCompareString / AContainsB (logicutils) |
The only regex-on-string predicate available |
Quick math → boolean (e.g. (a+b) > c) |
SimpleMathCondition |
Computes the expression and returns BOOLEAN in one node |
| Detect null / unwired input | easy isNone or ImpactIfNone |
Returns BOOLEAN + passes value through |
| Detect empty mask (all zeros) | easy isMaskEmpty |
Specifically tests MASK type |
| Detect SDXL vs SD1 model | easy isSDXL |
Probes CLIP / pipe and identifies arch |
| Detect file path exists on disk | easy isFileExist |
For input-validation gates |
Type coercion footgun
ImpactConditionalBranch.cond is BOOLEAN. Don't feed it:
SimpleMathConditionoutput → that's FLOAT (0.0 / 1.0) — convert via comparator firsteasy compareoutput → that IS BOOLEAN, fineLogicGateCompareoutput → BOOLEAN, fine- A raw INT from a math node → not BOOLEAN; pass through
ImpactCompare(a > 0) or convert
When in doubt, route through easy compare and pick the comparison operator that yields the boolean you want.
Boolean algebra
For combining multiple predicates into one branch input:
| Operator | Node |
|---|---|
| AND / OR / XOR | ImpactLogicalOperators (op picker) |
| NOT | ImpactNeg |
| Bit-wise AND / OR / XOR / NOT / shift | logicutils LogicGateBitwiseAnd etc. (work on INT, not BOOLEAN) |
| Generic invert (works on any truthy/falsy) | LogicGateInvertBasic |
isMaskEmpty(face_mask) ──┐
▼
ImpactNeg (NOT) ──┐
▼
ImpactLogicalOperators (AND) ──→ ImpactConditionalBranch
▲
isFileExist(reference.png) ────────┘
This combination says: "face mask is non-empty AND reference image exists on disk → run the detailer branch".
Branching
Lazy if-then-else (skips the discarded branch)
| Node | Behavior |
|---|---|
easy ifElse |
BOOLEAN selector, on_true / on_false inputs; only the chosen one is evaluated upstream |
ImpactConditionalBranch |
BOOLEAN cond; lazy tt_value / ff_value inputs |
ImpactConditionalBranchSelMode |
Same, but selection happens at execution time rather than prompt-queue time — needed when cond depends on something computed earlier in the same queue |
These are predicate-side nodes that ALSO act as switches — they
form the boolean and route in one step. If your predicate is simple
(one comparison) and the branches are large (samplers, models),
ImpactConditionalBranch is the cleanest single-node solution.
If the predicate is complex (multi-criteria), form it explicitly in
this skill's primitives, then pass the resulting BOOLEAN to a switch
from comfy-flow-control.
Ternary (compute, don't route)
SimpleCondition (essentials) — given condition, returns value_if_true
or value_if_false. Both inputs are computed (eager), so it's a value
picker, not an exec
Установить comfy-conditionals в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadGrepGlobВложенные файлы
FAQ
Что делает скилл comfy-conditionals?
ComfyUI predicate/boolean nodes: compare, AND/OR/XOR/NOT, ternary, null/empty/type probes, ExecutionBlocker. Use when forming the boolean that drives a workflow switch or blocker.
Как установить скилл comfy-conditionals?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл comfy-conditionals запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic