ConditionGroup

Inherits

Condition

Evaluates a set of conditions in a specific way.

Configuration

Properties

The group type is determined by the presence of one of the following properties, all of which are mutually exclusive with each other.

Property

Type

Description

all

list(Condition)

All conditions must be satisfied.

any

list(Condition)

At least one condition must be satisfied.

none

list(Condition)

No conditions must be satisfied.

Note

Singular values in groups are not implicitly converted to lists. The following condition is invalid:

conditions:
  - any: $window_class == firefox

Examples

conditions:
  - $window_class == firefox
  - any:
      - $fingers == 3
      - $fingers == 4
conditions:
  any:
    - $finger_1_initial_position_percentage_y <= 0.05
    - $finger_2_initial_position_percentage_y <= 0.05