DecrementAction

MathActions. DecrementAction

An action "decrement" that decrements a number property or variable

Constructor

new DecrementAction()

Source:
Examples
// Decrement the property by 1
{
    "decrement": {
        "property": "myNumberProperty"
    }
}
// Decrement the property by 2
{
    "decrement": {
        "property": "myNumberProperty",
        "by": 2
    }
}
// Decrement the property by 1, (Shorthand version)
{
    "decrement": "myNumberProperty"
}
// Decrement the variable by 2
{
    "decrement": {
        "variable": "myNumberVariable",
        "by": 2
    }
}