LengthAction

ArrayActions. LengthAction

Action "length" that can put the length of an array or string into a variable

Constructor

new LengthAction()

Source:
Examples
// Find the length of a property (array or string)
{
    "length": {
        "of": {"property": "myArrayOrStringProperty"},
        "as": "myResultVariableName"
    }
}
// Find the length of a property (array or string), on a non selected property
{
    "length": {
        "of": {"property": "myConcept.myArrayOrStringProperty"},
        "as": "myResultVariableName"
    }
}
// Find the length of a variable (array or string)
{
    "length": {
        "of": {"variable": "myArrayOrStringVariable"},
        "as": "myResultVariableName"
    }
}
// Shorthand, set the variable "length" to the length of the property "myProperty"
{
    "length": "myProperty"
}
// Shorthand, set the variable "length" to the length of the variable "myVariable"
{
    "length": "$myVariable"
}