CountAction

ContextActions. CountAction

An action "count" that counts how many concepts exists with the given where filter. Sets a variable to the count

Constructor

new CountAction()

Source:
Examples
// Counts how many "myConcept" that matches the given "where" filter, and saves the result as "myResultVariableName"
{
    "count": {
        "concept": "myConcept",
        "where": {
            "property": "myProperty",
            "equals": "myTestValue"
        },
        "as": "myResultVariableName"
    }
}
// Counts how many "myConcept" there is, and saves the result as "count"
{
    "count": "myConcept
}