ComfyUI Node: Min

Class Name

MinNode

Category
Math
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

Min Description

Determines the smallest value between two inputs, aiding in optimization and decision-making tasks.

Min:

The MinNode is a versatile component designed to determine the smallest value between two inputs. This node is particularly useful in scenarios where you need to compare numerical values or other comparable data types to identify the minimum. By automating the comparison process, the MinNode simplifies decision-making tasks, allowing you to focus on more creative aspects of your work. Its primary function is to return the lesser of two values, making it an essential tool for tasks that require optimization or conditional logic based on minimum values.

Min Input Parameters:

input1

This parameter represents the first value to be compared. It can be of any type that supports comparison operations, such as integers, floats, or strings. The function of this parameter is to provide one of the two values that the node will evaluate to determine the minimum. There are no specific minimum, maximum, or default values for this parameter, as it is highly dependent on the context in which the node is used.

input2

Similar to input1, this parameter is the second value to be compared. It also supports any type that can be compared, such as numbers or strings. The role of this parameter is to serve as the second input for the comparison operation. Like input1, there are no predefined limits or default values, allowing for flexibility in its application.

Min Output Parameters:

anytype

The output of the MinNode is a single value of the same type as the inputs, representing the minimum of the two compared values. This output is crucial for tasks that require the identification of the smallest value, such as selecting the least expensive option, determining the shortest path, or any other scenario where minimizing a value is beneficial. The output's interpretation is straightforward: it is the lesser of the two input values provided to the node.

Min Usage Tips:

  • Ensure that both input parameters are of comparable types to avoid unexpected behavior or errors.
  • Use the MinNode in conjunction with other nodes to build complex logic flows that require conditional decision-making based on minimum values.
  • Consider using the MinNode in optimization tasks where selecting the smallest value is critical, such as minimizing costs or reducing processing time.

Min Common Errors and Solutions:

TypeError: '<' not supported between instances of 'type1' and 'type2'

  • Explanation: This error occurs when the input parameters are of types that cannot be compared with each other, such as a string and an integer.
  • Solution: Ensure that both input1 and input2 are of types that support comparison operations. Convert the inputs to a common type if necessary.

ValueError: Invalid input type

  • Explanation: This error might arise if the inputs are not of a type that the node can process.
  • Solution: Verify that the inputs are of a type that supports comparison, such as numbers or strings, and adjust the inputs accordingly.

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