Evaluates a math expression written in terms of the single variable x, which carries the input value, or X when the input is a Transform.
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. A boolean input reads as 0 or 1 and a Vec2 input as such a vector.
Interface
Inputs
| Parameter | Details | Possible Types |
|---|---|---|
| Value | The value passed into the expression as Primary Input | Bool[]BoolInteger[]IntegerNumber[]NumberTransform[]TransformVec2[]Vec2 |
| f(x) = | The expression evaluated for the input value, in terms of Default: | String[]String |
| Output Type | The type the result is read as. Default: | Bool[]BoolInteger[]IntegerNumber[]NumberTransform[]TransformVec2[]Vec2 |
Outputs
| Product | Details | Possible Types |
|---|---|---|
| Result | The value produced by the node operation. Primary Output | NumberNumber[]IntegerInteger[]BoolBool[]Vec2Vec2[]TransformTransform[] |