IndexAction

IndexAction

An action 'index' that finds the index of a given item in an array

Constructor

new IndexAction()

Source:
Examples
//Lookup the item "myLookupItem" inside the array property "myArrayProperty", and save the resulting index in the variable "myResultVariableName"
{"index": {
    "of": {
        "property": "myArrayProperty"
    },
    "item": "myLookupItem",
    "as": "myResultVariableName"
}}
//Shorthand, lookup the "myLookupItem" inside the property array "myArrayProperty", and saves the index in the variable "index"
{"index": {"myArrayProperty": "myLookupItem"}}