Conditions

runFlow conditionally

- runFlow:
    when:
      visible: Some Text
    file: {reference to another yaml file}
Nested Flows

Multiple conditions

- runFlow:
    when:
      visible: Some Text
      platform: iOS
    file: {reference to another yaml file}

Conditions

Supported conditions include:

visible: { Element matcher }        # True if matching element is visible
notVisible: { Element matcher }     # True if matching element is not present
true: { Value }                     # True if given value is true or not empty
platform: { Platform }              # True if current platform is given platform (Android|iOS|Web)

JavaScript

Usage of JavaScript conditions is possible via true condition:

- runFlow:
    when:
      true: ${MY_PARAMETER == 'Something'}
    file: subflow.yaml
JavaScript

Last updated

Was this helpful?