Evaluate Math
What It Does
The Evaluate math node calculates the result of arbitrary mathematical expressions using variables. It lets you create complex formulas combining multiple values without needing multiple math nodes.
Inputs
Expression
Mathematical formula to evaluate
Text
Yes
[Variables]
Custom inputs used in the expression
Number
No
Outputs
Value
The calculated result of the expression
Number
Expression
The expression that was evaluated
Text
How to Use It
Drag the Evaluate math node into your graph.
Enter a mathematical expression like
"a * 2 + b"
in the "Expression" input.Add input variables by name (in this case, connect values to inputs "a" and "b").
The node will calculate the result based on your formula and connected values.

Tips
Supports standard operators (+, -, *, /, ^), functions (sin, cos, sqrt), and constants (pi, e).
Variable names in your expression must match the input names you add to the node.
See Also
Add (Variadic): For simpler addition of multiple values.
Multiply (Variadic): For simpler multiplication of multiple values.
Use Cases
Complex Calculations: Create custom formulas like
"width * 0.75 - padding * 2"
for layout logic.Design Algorithms: Implement specific design calculations such as contrast ratios.
Responsive Scaling: Create expressions that adjust values based on multiple parameters.
Last updated