ComfyUI > Nodes > ComfyUI-LogicUtils > ABiggerThanB

ComfyUI Node: ABiggerThanB

Class Name

LogicGateCompare

Category
Logic Gates
Author
aria1th (Account age: 3016days)
Extension
ComfyUI-LogicUtils
Latest Updated
2026-01-21
Github Stars
0.1K

How to Install ComfyUI-LogicUtils

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

ABiggerThanB Description

Compares two inputs, returning true if the first is greater, aiding decision-making processes.

ABiggerThanB:

The LogicGateCompare node is designed to perform a simple yet powerful comparison operation between two inputs. Its primary function is to determine whether the first input is greater than the second input, returning a boolean result based on this evaluation. This node is particularly useful in scenarios where decision-making processes are required, such as conditional logic flows in AI art generation or other computational tasks. By providing a straightforward mechanism to compare numerical values, it enables you to implement logic-based operations efficiently, enhancing the flexibility and control over your creative or computational workflows.

ABiggerThanB Input Parameters:

input1

input1 is the first value to be compared and serves as the primary operand in the comparison operation. It can be of any type, but it is typically a numerical value. The default value for input1 is 0. This parameter is crucial as it determines the outcome of the comparison when evaluated against input2.

input2

input2 is the second value in the comparison operation, acting as the reference point against which input1 is compared. Like input1, it can be of any type, with a default value of 0. The result of the comparison depends on the relationship between input1 and input2, making this parameter essential for the node's functionality.

ABiggerThanB Output Parameters:

BOOLEAN

The output of the LogicGateCompare node is a boolean value, which indicates the result of the comparison between input1 and input2. If input1 is greater than input2, the output will be True; otherwise, it will be False. This output is significant as it can be used to drive conditional logic in your workflows, enabling dynamic decision-making based on the comparison results.

ABiggerThanB Usage Tips:

  • Use the LogicGateCompare node to implement conditional logic in your AI art projects, allowing for dynamic changes based on numerical comparisons.
  • Combine this node with other logic gates to create complex decision-making processes, enhancing the interactivity and adaptability of your workflows.

ABiggerThanB Common Errors and Solutions:

TypeError: '>' not supported between instances of 'str' and 'int'

  • Explanation: This error occurs when attempting to compare incompatible types, such as a string and an integer.
  • Solution: Ensure that both input1 and input2 are of compatible types, preferably numerical, before performing the comparison.

ValueError: Invalid input type

  • Explanation: This error might arise if the inputs provided are not suitable for comparison, such as non-numeric types.
  • Solution: Verify that the inputs are valid and compatible for comparison, converting them to numeric types if necessary.

ABiggerThanB Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-LogicUtils
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.