Max: Difference between revisions
-u ndefined- (talk | contribs) m (Adapt "Can I avoid using IF for X greater than Y" article from old wiki) |
-u ndefined- (talk | contribs) mNo edit summary |
||
Line 19: | Line 19: | ||
{{Image|Greater than no if.png}} | {{Image|Greater than no if.png}} | ||
The less-than operation is obtained by replacing the left Max block to [[Min]]. | |||
== Related == | == Related == |
Revision as of 16:12, 3 July 2024
Max
Type | Script block |
Collider | None |
Folder | Math |
Ports | |
---|---|
Inputs | Num1 Num2 |
Outputs | Bigger Num |
Outputs the bigger number.

Notes
If one of the inputs are nan, the other value will be outputted regardless.
This can be used in conjunction with Divide to check if a number is greater than another, without using If:

The less-than operation is obtained by replacing the left Max block to Min.