Condition

[ Interface ]

export interface Condition extends baseAction {
    objectType: 'Condition';
    parts: (ConditionIf | ConditionElseIf | ConditionElse)[];
}

Extends baseAction

Defines an action of type Condition.

An If-Then-Else condition that can trigger different actions depending on certain values.

Properties

Name

Type

Description

active [ optional ]

boolean

Defines whether the action is active or inactive.

collapsed [ optional ]

boolean

Defines whether the action is collapsed or expanded in the Actions & Conditions Editor.

asyncWait

boolean

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

'Condition'

Defines the relevant parser.

parts

(ConditionIf | ConditionElseIf | ConditionElse)[]

An array of objects of type ConditionIf, ConditionElseIf or ConditionElse.

The array must begin with a ConditionIf element. Any number of ConditionElseIf elements and one ConditionElse element can follow. The ConditionElse element must be the last element.

Condition 1:

Available from version 1.12