ComfyUI Node: >

Class Name

Basic data handling: GreaterThan

Category
Basic/comparison
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

> Description

The GreaterThan node compares two numbers, returning true if the first is greater, aiding decision-making.

>:

The GreaterThan node is designed to facilitate basic numerical comparisons by determining if one number is greater than another. This node is particularly useful in scenarios where you need to make decisions based on numerical values, such as filtering data, controlling flow in a process, or setting conditions for further actions. By providing a straightforward mechanism to compare two numbers, the GreaterThan node helps streamline workflows that require conditional logic based on numerical superiority. Its primary function is to evaluate two input numbers and return a boolean result indicating whether the first number is greater than the second, making it an essential tool for tasks that involve numerical analysis or decision-making processes.

> Input Parameters:

value1

value1 is the first numerical input parameter that the node evaluates. It represents the number that will be compared against the second input, value2. The function of value1 is to serve as the reference point for determining if it is greater than value2. This parameter accepts floating-point numbers, allowing for precise comparisons. There are no explicit minimum, maximum, or default values specified, as the node is designed to handle a wide range of numerical inputs, including both positive and negative values.

value2

value2 is the second numerical input parameter used in the comparison. It acts as the benchmark against which value1 is compared. The role of value2 is crucial as it determines the threshold that value1 must exceed for the node to return a True result. Like value1, this parameter also accepts floating-point numbers, providing flexibility in handling various numerical scenarios. There are no specific constraints on the values it can take, allowing for comprehensive comparisons across different numerical ranges.

> Output Parameters:

result

The result is the output parameter of the GreaterThan node, which returns a boolean value. This output indicates the outcome of the comparison between value1 and value2. If value1 is greater than value2, the result will be True; otherwise, it will be False. This boolean output is essential for decision-making processes, as it allows you to branch logic or trigger specific actions based on whether the condition of value1 being greater than value2 is met.

> Usage Tips:

  • Use the GreaterThan node to filter datasets by setting conditions where only values greater than a certain threshold are considered, which can be particularly useful in data analysis or preprocessing tasks.
  • Combine the GreaterThan node with other comparison nodes like LessThan or Equal to create complex conditional logic, enabling more sophisticated decision-making processes in your workflows.

> Common Errors and Solutions:

Invalid input type

  • Explanation: This error occurs when the inputs provided to the node are not numerical values, which the node requires for comparison.
  • Solution: Ensure that both value1 and value2 are valid numbers, preferably floating-point numbers, to avoid type-related issues.

Comparison with None

  • Explanation: If one of the inputs is None, the node cannot perform the comparison, leading to an error.
  • Solution: Check that both input parameters are assigned valid numerical values before executing the node to prevent None type errors.

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

>