largest

This block is part of the number group and was last modified in core v10.4.28.

largest v10.4.28

Returns the largest number of all numbers provided.

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

Outputs the larger of number_0 and number_1. Numeric strings and booleans coerce; when exactly one pin is unwired, nil, or non-numeric the other passes through unchanged, and when both are invalid the output is nil. Example: number_0="3" number_1=7 -> 7.

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

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

Version history

Introduced in v10.4.28.


Back to number Return to the main group to view all sub-groups Back to number Return to the group to view all blocks within this group