GetTypeAction

PropertyActions. GetTypeAction

An action 'getType' that sets a variable to the type of the looked up property/variable/target. If the lookup finds nothing, the variable is set to undefined.

Constructor

new GetTypeAction()

Source:
Examples
{
    "getType": {
        "property": "myProperty",
        "as": "myPropertyType"
    }
}
{
    "getType": {
        "variable": "myVariableName",
        "as": "myVariableType"
    }
}
{
    "getType": {
        "target": "someConceptUUID",
        "as": "myConceptType"
    }
}
//Shorthand retrieves the type of myProperty and puts it in the variable 'getType'
//Looks up in the following order:
//ContextConcept, LocalConcept, GlobalConcept, Variable, UUID
{
    "getType": "somePropertyNameVariableNameOrConceptUUID"
}
//Shorthand that looks up the current target's concept type
"getType"