ComfyUI > Nodes > ComfyUI > Boolean

ComfyUI Node: Boolean

Class Name

PrimitiveBoolean

Category
utils/primitive
Author
ComfyAnonymous (Account age: 872days)
Extension
ComfyUI
Latest Updated
2025-05-13
Github Stars
76.71K

How to Install ComfyUI

Install this extension via the ComfyUI Manager by searching for ComfyUI
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Boolean Description

Facilitates boolean data processing and manipulation in ComfyUI for logical operations and conditions.

Boolean:

The PrimitiveBoolean node is a fundamental component designed to handle boolean values within the ComfyUI framework. Its primary purpose is to facilitate the processing and manipulation of boolean data, which is a binary type representing true or false states. This node is particularly useful in scenarios where logical operations or conditions need to be evaluated, providing a straightforward mechanism to work with boolean inputs and outputs. By encapsulating boolean logic in a dedicated node, it simplifies the integration of conditional logic into your AI art workflows, allowing for more dynamic and responsive designs. The node's execution method ensures that the boolean value is processed and returned as expected, maintaining the integrity of the data throughout its use.

Boolean Input Parameters:

value

The value parameter is the core input for the PrimitiveBoolean node, representing the boolean data that the node will process. This parameter accepts a boolean value, which can either be True or False. The function of this parameter is to provide the node with the necessary data to execute its logic, determining the output based on the input boolean state. There are no minimum or maximum values for this parameter, as it strictly adheres to the binary nature of boolean logic. The value parameter is crucial for the node's operation, as it directly influences the result of the node's execution.

Boolean Output Parameters:

BOOLEAN

The output parameter of the PrimitiveBoolean node is a boolean value, which is the result of the node's execution. This output reflects the input boolean value, ensuring that the data is accurately passed through the node. The importance of this output lies in its role in enabling further logical operations or conditions within your workflow. By providing a clear and consistent boolean output, the node allows for seamless integration with other nodes that require boolean inputs, facilitating complex decision-making processes in your AI art projects.

Boolean Usage Tips:

  • Use the PrimitiveBoolean node to simplify the handling of boolean logic in your workflows, especially when dealing with conditional operations or decision-making processes.
  • Integrate the node with other logic-based nodes to create more complex and dynamic AI art designs, leveraging the boolean output to control the flow of your project.

Boolean Common Errors and Solutions:

Invalid boolean input

  • Explanation: This error occurs when the input provided to the value parameter is not a valid boolean type.
  • Solution: Ensure that the input is either True or False, as these are the only acceptable values for a boolean parameter.

Unexpected output behavior

  • Explanation: If the output does not match the expected boolean value, it may be due to incorrect input or a misunderstanding of the node's function.
  • Solution: Double-check the input value and ensure that it is correctly set to either True or False. Review the node's logic to confirm that it aligns with your intended workflow.

Boolean Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.