RemoveFirstAction

ArrayActions. RemoveFirstAction

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

Constructor

new RemoveFirstAction()

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