Max¶
| Name | Mandatory | Description | Default | Type | 
|---|---|---|---|---|
| ⬅️ Input | The first value to compare with. | IntInt2Int3Int4Int8Int16FloatFloat2Float3Float4Color[Any] | ||
| Output ➡️ | The larger value between the input and the operand. | IntInt2Int3Int4Int8Int16FloatFloat2Float3Float4Color[Any] | ||
| Operand | No | The operand for this operation. | 0 | IntVar(Int)Int2Var(Int2)Int3Var(Int3)Int4Var(Int4)Int8Var(Int8)Int16Var(Int16)FloatVar(Float)Float2Var(Float2)Float3Var(Float3)Float4Var(Float4)ColorVar(Color)[Any]Var([Any]) | 
This shard compares the input with the value specified in the Operand parameter and outputs the larger value.
Details¶
The input and the value in the Operand parameter must be of the same type. (e.g you cant compare an integer with a float, a sequence of integers can only be compared with an integer or sequence of integers, a int vector can only be compared with an int or another int vector)
If a sequence of numbers was provided as input, and a single  the shard will compare each element in the sequence with the value in the Operand parameter and output a sequence of numbers with the maximum value for each element.
If a sequence of numbers was provided as input and a sequence was also provided in the Operand parameter, the shard will compare each element in the input sequence with the corresponding element in the Operand sequence and output a sequence of numbers with the maximum value for each element. If the operand sequence is shorter than the input sequence, the shard will loop back to the first element of the operand sequence and continue the comparison. If the operand sequence is longer than the input sequence, the extra elements in the operand sequence will be ignored. This shard will behave the same if the input and operand are vectors.
Examples¶
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |  |