ComfyUI Node: xor

Class Name

Basic data handling: Boolean Xor

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

xor Description

Performs a logical XOR on two booleans, returning true if exactly one input is true.

xor:

The "Basic data handling: Boolean Xor" node is designed to perform a logical XOR (exclusive OR) operation on two boolean values. This node is particularly useful when you need to determine if exactly one of the two inputs is true, as it returns true only when the inputs differ. This functionality is essential in scenarios where you want to ensure that two conditions are mutually exclusive, providing a clear and concise way to handle such logic. By integrating this node into your workflow, you can efficiently manage boolean logic operations, enhancing the decision-making processes in your AI art projects.

xor Input Parameters:

input1

The input1 parameter is the first boolean input for the XOR operation. It plays a crucial role in determining the outcome of the XOR logic, as the result depends on the comparison between this input and input2. The default value for input1 is False, and it is a required parameter, meaning you must provide a value for it to execute the node's function. This parameter allows you to specify one of the two conditions you want to evaluate for exclusivity.

input2

The input2 parameter is the second boolean input for the XOR operation. Similar to input1, it is essential for the XOR logic, as the result is true only when input1 and input2 have different boolean values. The default value for input2 is also False, and it is a required parameter. By providing a value for input2, you define the second condition to be evaluated, enabling the node to perform the XOR operation effectively.

xor Output Parameters:

BOOLEAN

The output parameter of the Boolean Xor node is a boolean value that represents the result of the XOR operation between input1 and input2. This output is true if and only if one of the inputs is true and the other is false, reflecting the exclusive nature of the XOR logic. This output is crucial for decision-making processes where mutual exclusivity between two conditions is required, allowing you to implement complex logic flows in your AI art projects.

xor Usage Tips:

  • Use the Boolean Xor node when you need to ensure that two conditions are mutually exclusive, such as when only one of two options should be selected.
  • Combine this node with other boolean nodes like AND, OR, and NOT to create more complex logical expressions and enhance your project's decision-making capabilities.

xor 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 boolean values (either True or False) before executing the node.

Missing required input

  • Explanation: This error happens when one or both of the required inputs are not provided.
  • Solution: Make sure to supply both input1 and input2 with valid boolean values to perform the XOR operation.

xor 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.

xor