MIN
The MIN node is a utility node that takes two floating-point numbers as input and outputs the smaller of the two values. It is useful when you need to determine the minimum value between two numbers in your spell.Inputs
a(float): The first number to compare. Default value is 0.b(float): The second number to compare. Default value is 0.
Outputs
result(float): The smaller value between the two input numbers.
Configuration
This node has no additional configuration options.Usage
- Connect the first number you want to compare to the
ainput. - Connect the second number you want to compare to the
binput. - The
resultoutput will provide the minimum value betweenaandb.
Example
Suppose you have a spell that generates two random numbers between 0 and 100, and you want to use the smaller number for further processing. You can use the MIN node to determine the minimum value:a and b inputs of the MIN node. The result output will provide the smaller of the two generated numbers, which can then be used as input for subsequent nodes in your spell.
Tips
- If you connect only one input, the MIN node will output that value regardless of the other input.
- You can chain multiple MIN nodes together to find the minimum value among more than two numbers.
