min

This block is part of the math group and was last modified in core v13.0.8.

min v13.0.8

Return the smallest of the numbers given as input parameters

In pins 2
  • number_0 required
    number
  • number_1 required
    number
Out pins 1
  • Number
    number

Outputs the smaller of number_0 and number_1. Both pins must be wired : when either is absent the block writes nothing; a wired but nil or non-numeric value counts as 0 (numeric strings and booleans coerce). Example: number_0=3 number_1="7" -> 3.

A typical wiring for min: the number out pin feeds cast to value.

Studio canvas example for the min block: typical wiring for min.

Version history

Introduced in v13.0.8.


Back to math Return to the main group to view all sub-groups Back to number: static methods Return to the group to view all blocks within this group