ComfyUI Extension
ComfyUI_DualConditionBoolean
Standalone ComfyUI custom node for evaluating two conditions against one input value.
kuikuite/ComfyUI_DualConditionBoolean
Nodes—
On cloudLocal install
Stars0
Updated2 months ago
Readme
ComfyUI Dual Condition Boolean
Standalone ComfyUI custom node for evaluating two conditions against one input value.
This package is intentionally independent from ComfyUI_LayerStyle, so it can be installed as its own git repository under ComfyUI/custom_nodes without overwriting or conflicting with the original LayerStyle node package.
Node
- Internal node name:
SZ: DualConditionBoolean - Display name:
SZ Dual Condition Boolean - Category:
SZ Nodes/Logic
Install
Clone or copy this folder into ComfyUI:
cd ComfyUI/custom_nodes
git clone <your-repo-url> ComfyUI_DualConditionBoolean
Restart ComfyUI after installation.
Example: output False when A is 0 or greater than/equal to 1.6
Set the node like this:
a_value: leave empty when connecting theainput, or type a number directlyb1_value:0operator1:==b2_value:1.6operator2:>=condition:ormatch_output:False
Result:
A == 0outputsFalseA >= 1.6outputsFalse- values between those ranges, such as
0.1and1.59, outputTrue
Optional inputs a, b1, and b2 take priority over the text fields when connected.
Test
python3 tests/test_dual_condition_boolean.py