max

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

max v10.4.28

Returns the highest number in the given array of numbers.

In pins 1
  • Array required
    array

    The array of numbers for which to find the highest number.

Out pins 1
  • Number
    number

    The highest number in the given array of numbers.

Returns the highest item after coercing to numbers; numeric strings and booleans coerce, and non-coercible items after the first are ignored. Outputs 0 when the array is empty, not an array, or its FIRST item is not numeric-coercible - indistinguishable from a real maximum of 0.

highest

A typical wiring for max: with numbers feeds the array pin; the number out pin feeds plus hours.

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

Commonly used with

In production blueprints, this block is most often wired together with:

  • with numbers: feeds into this block. Returns an array of numbers.
  • plus hours: this block feeds into it. Plus an selected amount of hours to your given date.
  • set fields: this block feeds into it. Generates an array of mutations based on the given filled fields.
  • new object: this block feeds into it. Builds a new object filled with the given fields.

Version history

Introduced in v10.4.28.


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