Math f(…)

Evaluates a math expression across all of the input items at once. A full expression reads the items as a, b, c, …, or as A, B, C, … for Transforms, while a math operator or N-argument function name (like * or min) applies across every item.

The result is read as the chosen output type: an Integer rounds to the nearest whole number, a Bool reads exactly 0 or 1 as false or true, a Vec2 takes the X and Y of a vector like 3i + 4j, and a Transform takes a matrix like rotation(pi/4) + 5i. Boolean items read as 0 or 1 and Vec2 items as such vectors. Across Transforms, * and / compose in order, mean averages, and count counts.

Interface

Inputs

ParameterDetailsPossible Types
Values

The items the expression reads.

Primary Input

Bool[]
Integer[]
Number[]
Transform[]
Vec2[]
f(…) =

The expression evaluated over the items, such as a * b + c, or a lone operator or function applied across all of them.

Default: ""

String
Output Type

The type the result is read as.

Default: 0

Bool
Integer
Number
Transform
Vec2

Outputs

ProductDetailsPossible Types
Result

The value produced by the node operation.

Primary Output

Number
Integer
Bool
Vec2
Transform