ExistsAction

ContextActions. ExistsAction

An action "exists" that checks if any concepts exists with the given where filter. Sets a variable to true/false depending.

Constructor

new ExistsAction()

Source:
Examples
// Sets a variable "myResultVariableName" to true/false depending on if any "myConcept" that matches the where filter exists
{
    "exists": {
        "concept": "myConcept",
        "where": {
            "property": "myProperty",
            "equals": "myTestValue"
        },
        "as": "myResultVariableName"
    }
}
// Sets a variable "exists" to true/false depending on if any "myConcept" exists
{
    "exists": "myConcept"
}