Min

From Fancade Wiki
Revision as of 16:07, 3 July 2024 by -u ndefined- (talk | contribs) (Adapt "Can I avoid using IF for X = Y statements?" article from old wiki)
Min
Min.png
TypeScript block
ColliderNone
FolderMath
Ports
Inputs Num1
Num2
Outputs Smaller Num

Outputs the smaller number.

The minimum of 3 and 5 is 3. The minimum of -2 and 0 is -2.

Notes

If one of the inputs are nan, the other value will be outputted regardless. This can be used in conjunction with Divide, to create an equality test without ever using an If:

Equal numbers no if.png

Related