Modding
Discord Wishlist on Steam

Node book›Maths

Expression

math/Expression

Works out what is typed, like a line of code: numbers, + - * / % ^, = != < <= > >=, and or not, brackets, and min max abs round floor ceil clamp lerp sqrt sin cos random(a, b). Each other name becomes an input, unless a number or yes-or-no variable of the graph, the mod or the run has that name: then it is read directly. The result is a whole number, a number or yes or no, as worked out. Read once when the graph loads; nothing but its inputs is reached.

Expressionab= number
Does
A value: worked out when a node wired to it asks
Runs
On every machine
Listed under
Maths › Numbers
In a file
math/Expression

Pins

  • inexpressiontext

    What to work out.

    Starts as a + b

  • outresultany kind, the same as its other X pins

    What it comes to.

Example

(health - damage) * 0.5, or hour >= 21 or hour < 4, or kills % 10 = 0 with a kills variable.