← See All Custom Node Packs

was-node-suite-comfyui

1529

Run ComfyUI Easily with InstaSD

Skip the complex setup. InstaSD helps creative professionals build workflows and deploy them to the world:

  • One-click deployment
  • Any model, any node
  • Powerful GPUs for rapid iteration
Get Started

Available Nodes

Logic Comparison XOR

Logic Comparison XOR Node Documentation

Overview

The "Logic Comparison XOR" node is part of the WAS Node Suite for ComfyUI. This node performs a logical XOR (exclusive or) operation on two boolean inputs. In logic, the XOR operation outputs true if the inputs are different (i.e., one is true, and the other is false) and outputs false if both inputs are the same (both true or both false).

Functionality

The "Logic Comparison XOR" node is designed to enable users to perform logical comparisons between two boolean values within their workflows. This can be particularly useful in scenarios where conditional branching or decision-making is required based on the boolean logic of the inputs.

Inputs

  1. Boolean A: The first boolean input that the node will compare using the XOR logic.
  2. Boolean B: The second boolean input that will be compared against the first input.

Both inputs are expected to be boolean values — either true or false.

Outputs

  • Boolean Output: The result of the XOR operation on the two boolean inputs. This output will be true if one of the inputs is true and the other is false. It will be false if both inputs are true or both are false.

Usage in ComfyUI Workflows

The "Logic Comparison XOR" node can be utilized in various ComfyUI workflows to introduce conditional logic. Here are a few examples of how it might be used:

  1. Conditional Routing: Use the output of the XOR node to determine which path to take in a workflow. For instance, route data differently based on whether two conditions are mutually exclusive.

  2. Toggle Systems: Implement toggling mechanisms in workflows where an action is only taken if two conditions are not the same.

  3. Logic Gates: When building logic gate structures or digital systems simulations within ComfyUI, the XOR node can represent an XOR gate.

Special Features or Considerations

  • Exclusivity: Unlike the logical AND and OR operations, XOR is exclusively true for differing inputs. Users need to understand this property to effectively implement it in their logic systems.
  • Simplicity: The node is straightforward, accepting two boolean values and returning a single boolean output. Its simplicity makes it an ideal component for beginners exploring logic operations.
  • Integration: Integrates seamlessly with other logical nodes in the WAS Node Suite, allowing for complex logic combinations and nested logical structures.

The "Logic Comparison XOR" node is a powerful yet simple tool for adding logical decision-making capabilities to ComfyUI workflows. By manipulating boolean inputs, users can create sophisticated conditions and actions that react dynamically within their applications.