This node enables you to do your own calculations using simple expressons. Inputs are automatically derived from the expression. An expression set to
a + someName + 1 will get two inputs: one for a and one for someName.
Built in math functions
Expressions support the following funcitons:
min(a,b)- Minimum of two values
max(a,b)- Maximum of two values
cos(angle)- The cosine of an angle in radians
sin(angle)- The sine of an angle in radians
tan(angle)- The tangent of an angle in radians
sqrt(a)- Square root of a number
pi- PI in radians
round(a)- Rounds a number to the closest integer
floor(a)- Removes the fractional part of a number
ceil(a)- Rounds a value up to the closest higher integer. E.g.
abs(a)- The absolute value of a number. Negative values will become positive.
random()- A random number from 0 to 1
return statement before the
expression is executed.
1+2 will be evaluated as
Truthy and Falsy signals
Normally, an expression node recalculates whenever one of the input parameters change. However, if you connect a signal to the Run signal input you can control when the expression is calculated. It will only calculate and update it's outputs when a signal is received.
|Expression||The expression to be calculated.|
|Run||Normally the expression is recalucated every time one of the input parameters change. But if you want to control when the expression is calculated you can connect a signal to this input, then the expression will only be calculated when a signal is received.|
Inputs are automatically derived from the expression. An expression set to
a + someName + 1 will get two inputs, one for
a and one for
As soon as any of the input values changes, the expression is reevaluated.
|Result||This output contains the result when evaluating the expression|
|On True||A signal will be sent on this output when the expression is calculated and the result is "truthy".|
|On False||A signal will be sent on this output when the expression is calculated and the result is "falsy".|