RemoveLastAction

ArrayActions. RemoveLastAction

An action "removeLast" that can remove the last item of an array, and set a variable to the removed item

Constructor

new RemoveLastAction()

Source:
Examples
// Remove the last item from an array property
{
    "removeLast": {
        "of": {"property": "myArrayProperty"},
        "as": "myResultVariableName"
    }
}
// Remove the last item from an array property, on a non selected concept
{
    "removeLast": {
        "of": {"property": "myConcept.myArrayProperty"},
        "as": "myResultVariableName"
    }
}
// Remove the last item from an array property, shorthand notation, result will be in variable named "removeLast"
{
    "removeLast": "myArrayProperty"
}
// Remove the last item from an array variable
{
    "removeLast": {
        "of": {"variable": "myArrayVariable"},
        "as": "myResultVariableName"
    }
}