Constructor
new SwitchAction()
- Source:
Example
{
"switch": [
{
"where": {"property": "myProperty", "equals": "myValue"},
"then": ["myAction", "myOtherAction"],
"break": true
},
{
"where": {"property": "myProperty", "equals": "myOtherValue"},
"then": ["myAction", "myOtherAction"],
"break": true
},
{
"then": ["myDefaultAction"]
}
]
}