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.
Numbers
| Data | Description |
|---|
| First Number | The first number to compare (default: 0) |
| Second Number | The second number to compare (default: 0) |
Actions
| Signal | Description |
|---|
| Do | Triggers the minimum value calculation |
Outputs
| Data | Description |
|---|
| Result | The smaller of the two input numbers |
| Signal | Description |
|---|
| Done | Triggered when the calculation is complete |
Usage
Example Use Cases
- Value Clamping: Ensure a value doesn't exceed a maximum (e.g., min(userInput, 100))
- Game Development: Calculate minimum damage, lowest score limits
- UI Controls: Set maximum widget sizes or constrain positions
- Resource Management: Limit consumption to available amounts
Examples
| First Number | Second Number | Result |
|---|
| 5 | 3 | 3 |
| -2 | -5 | -5 |
| 0 | 10 | 0 |
| 7.5 | 7.2 | 7.2 |