Extensions/ComfyUI_DualConditionBoolean
ComfyUI Extension

ComfyUI_DualConditionBoolean

Standalone ComfyUI custom node for evaluating two conditions against one input value.

By kuikuite·Created 2 months ago·Updated 2 months ago· 0
kuikuite/ComfyUI_DualConditionBoolean
Nodes1
On cloudLocal install
CategorySZ Nodes/Logic
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 the a input, or type a number directly
  • b1_value: 0
  • operator1: ==
  • b2_value: 1.6
  • operator2: >=
  • condition: or
  • match_output: False

Result:

  • A == 0 outputs False
  • A >= 1.6 outputs False
  • values between those ranges, such as 0.1 and 1.59, output True

Optional inputs a, b1, and b2 take priority over the text fields when connected.

Test

python3 tests/test_dual_condition_boolean.py