Calculation
Mathematical Expressions
The Calculation node uses the mXparser library to support many mathematical functions.
In order to add/subtract/multiply the current value when the node is inside a loop use: {CURRENT_CALCULATION_VARIABLE} ±/*/ {ANOTHER_NUMBER_VARIABLE} or some number. For example:
"Calculation node/Result" + "Loop over Order/Quantity"
Functions
Next to the evaluation of mathematical expressions specified above, the calculation node also offers several special functions that can be used in a Flow.
Function | Description |
---|---|
~~setVar(var,value) ~~ |
~~Set a Flow variable to a specific value~~ ⚠️ Deprecated |
durationDate(date1,date2) |
Returns the number of days between date1 and date2 |
durationTime(time1,time2) |
Returns the number of seconds between time1 and time2 |
durationTimestamp(ts1,ts2) |
Returns the number of seconds between ts1 and ts2 |
See Flow Designer