-

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

- v10.4.28

Subtracts the two operands, producing their difference.

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

Subtracts every other wired input pin from number_0 (number_0 - number_1 - ...). Numeric strings and booleans coerce; an invalid number_0 counts as 0 while invalid later pins are skipped entirely, so they neither subtract nor error. Example: number_0=10 number_1=3 number_2="2" -> 5.

min

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

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

Version history

Introduced in v10.4.28.


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