Max
Arithmetic
Pure
Generic
Max
A
0
Result
B
0
Description
Pure function returning the larger of two numbers.
When to use
Use Max to enforce a lower bound — for example, ensuring a delay is never shorter than a minimum threshold. Both integer and decimal inputs are accepted. Like Min, it is most useful when only one bound is needed; use Clamp when both a floor and a ceiling are required simultaneously.
Pins
Input pins
| Pin | Type | Default | Notes |
|---|---|---|---|
| A | generic(integer, decimal) | 0 | The first number to compare. |
| B | generic(integer, decimal) | 0 | The second number to compare. |
Output pins
| Pin | Type | Notes |
|---|---|---|
| Result | generic(integer, decimal) | The larger of a and b. |
Example
Ensure a computed retry delay is at least 1000 milliseconds. Wire the computed delay
(integer or decimal) into the A input of Max with B set to 1000, then feed the Result
output into the Duration (ms) input of Sleep. Sleep will always wait at least one second
even if the computed value is smaller.