ToggleAction

PropertyActions. ToggleAction

An action "toggle" that toggles a boolean property or variable

Constructor

new ToggleAction()

Source:
Examples
//Toggle a boolean property
{
    "toggle": {
        "property": "myBooleanProperty"
    }
}
//Toggle a boolean property on a non selected concept
{
    "toggle": {
        "property": "myConcept.myBooleanProperty"
    }
}
//Toggle a boolean property (shorthand version)
{
    "toggle": "myBooleanProperty"
}
//Toggle a boolean variable (shorthand version)
{
    "toggle": "$myBooleanVariable"
}
//Toggle a boolean variable
{
    "toggle": {
        "variable": "myBooleanVariable"
    }
}