ComfyUI Node: nand

Class Name

Basic data handling: Boolean Nand

Category
Basic/BOOLEAN
Author
StableLlama (Account age: 861days)
Extension
Basic data handling
Latest Updated
2026-05-07
Github Stars
0.04K

How to Install Basic data handling

Install this extension via the ComfyUI Manager by searching for Basic data handling
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Basic data handling 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

nand Description

The Boolean Nand node computes the inverse of an AND operation between two boolean values.

nand:

The Boolean Nand node is a logical operation node designed to compute the NAND (Not AND) result of two boolean values. This node is particularly useful in scenarios where you need to determine the inverse of an AND operation between two conditions. The NAND operation is a fundamental building block in digital logic, often used in various computational and decision-making processes. By providing a straightforward mechanism to evaluate the NAND logic, this node helps simplify complex logical expressions and can be a valuable tool in creating more efficient workflows. Its primary goal is to offer a simple yet powerful way to invert the result of an AND operation, making it an essential component in logical operations and decision-making processes.

nand Input Parameters:

input1

input1 is the first boolean input parameter for the NAND operation. It represents one of the two conditions that will be evaluated. The value of input1 can be either True or False, with a default value of False. This parameter is crucial as it directly influences the outcome of the NAND operation. If both input1 and input2 are True, the result will be False; otherwise, the result will be True.

input2

input2 is the second boolean input parameter for the NAND operation. Similar to input1, it represents the other condition to be evaluated. The value of input2 can also be either True or False, with a default value of False. The interaction between input1 and input2 determines the final result of the NAND operation, where the result is True unless both inputs are True.

nand Output Parameters:

BOOLEAN

The output of the Boolean Nand node is a single boolean value, which represents the result of the NAND operation on the two input parameters. This output is True if at least one of the inputs is False, and False only if both inputs are True. This output is essential for decision-making processes where the inverse of an AND operation is required, providing a clear and concise result that can be used in further logical evaluations or actions.

nand Usage Tips:

  • Use the Boolean Nand node when you need to determine if not both conditions are true, which can simplify complex logical expressions by reducing the need for additional NOT operations.
  • Combine this node with other logical nodes like Boolean Or or Boolean Not to create more complex logical structures and decision-making processes.

nand Common Errors and Solutions:

Invalid Input Type

  • Explanation: This error occurs when the inputs provided are not boolean values.
  • Solution: Ensure that both input1 and input2 are strictly boolean values (True or False). Check the data type of the inputs before passing them to the node.

Missing Input

  • Explanation: This error arises when one or both of the required inputs are not provided.
  • Solution: Make sure to supply both input1 and input2 when using the node. These inputs are mandatory for the node to function correctly.

nand Related Nodes

Go back to the extension to check out more related nodes.
Basic data handling
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 Models, enabling artists to harness the latest AI tools to create incredible art.

nand