Extensions/Magik Booleangate
ComfyUI Extension

Magik Booleangate

Magik Booleangate

By IA-gyz·Created 7 days ago·Updated 3 days ago· 0
IA-gyz/comfyui-magik-booleangate
Nodes—
On cloudLocal install
Stars0
Updated3 days ago
Readme

Magik_BooleanGate

A ComfyUI custom node that acts as a boolean gate for passing through data.

Description

The Boolean Gate node accepts any type of input and passes it through unchanged when enabled is True. When disabled, it returns None.

Features

  • Wildcard Input: Accepts any ComfyUI data type (value)
  • Boolean Control: Enables/disables output with enabled parameter
  • Identity Preservation: Passes through the exact original object (no copying)
  • None Output: Returns None when disabled

Installation

  1. Copy this directory to your ComfyUI's custom_nodes folder
  2. Restart ComfyUI

Usage

Node Inputs:

  • value: Any ComfyUI data type (wildcard input)
  • enabled: Boolean flag, defaults to True

Node Outputs:

  • result: The original value when enabled=True, None when disabled

Examples

The node works with all data types:

  • Strings: "Hello World"
  • Numbers: 42, 3.14
  • Lists: [1, 2, 3]
  • Dictionaries: {"key": "value"}
  • Any other ComfyUI object type

Notes

  • The output maintains the exact same object identity as the input (no copying)
  • Input objects are never modified during execution
  • When enabled=False, the node returns None which downstream nodes can handle appropriately

Compatibility

Compatibility has not yet been verified in a running ComfyUI instance.