CalculateAction

MathActions. CalculateAction

An action 'calculate' that calculates a given math expression and sets a variable with the result

Constructor

new CalculateAction()

Source:
Examples
//Shorthand, calculates and sets result in variable 'calculate'
{
    "calculate": "42 + 60 + $myVariableName$
}
{
    "calculate": {
        "expression": "sqrt(2) * sqrt(2)",
        "as": "myResultVariableName"
    }
}