Skip to main content

Min

This node returns the smaller of two numbers.

The Min node compares two numeric values and outputs the minimum value.

The Min node takes two numeric inputs and returns whichever value is smaller. This is useful for setting maximum thresholds or for comparison operations.

Inputs

Numbers

DataDescription
First NumberThe first number to compare (default: 0)
Second NumberThe second number to compare (default: 0)

Actions

SignalDescription
DoTriggers the minimum value calculation

Outputs

DataDescription
ResultThe smaller of the two input numbers
SignalDescription
DoneTriggered when the calculation is complete

Usage

Example Use Cases

  1. Value Clamping: Ensure a value doesn't exceed a maximum (e.g., min(userInput, 100))
  2. Game Development: Calculate minimum damage, lowest score limits
  3. UI Controls: Set maximum widget sizes or constrain positions
  4. Resource Management: Limit consumption to available amounts

Examples

First NumberSecond NumberResult
533
-2-5-5
0100
7.57.27.2