SwitchCase
[ Interface ]
export interface SwitchCase extends baseAction {
objectType: 'SwitchCase';
compare: IFunction.Value;
cases: VCase[];
caseDefault: DCase;
}
Extends baseAction
Defines an action of type SwitchCase.
A SwitchCase decision that can trigger different actions depending on certain values.
Properties
Name | Type | Description |
---|---|---|
active [ optional ] | Defines whether the action is active or inactive. | |
collapsed [ optional ] | Defines whether the action is collapsed or expanded in the Actions & Conditions Editor. | |
asyncWait | Defines whether or not asynchronous actions should wait until the end of the action is signaled before the following action is executed. | |
success | Action[] | A list of actions to be performed in case of success. |
error | Action[] | A list of actions to be performed in case of an error. |
objectType | 'SwitchCase' | Defines the relevant parser. |
compare | The value to be checked. | |
cases | VCase[] | An array of VCase objects which form the individual cases. |
caseDefault | Default case that is used if none of the other cases is applicable. |
Available from version 1.12 |