Edit on Github

If-Then-Else Flow

A schema that is used to validate a part of Laboperator workflow templates.

Schema

A conditional flow of steps or nested flow control schemas. In the well known if-then-else fashion a conditional flow through the workflow can be implemented.

If-Then-Else Flow
ifrequired
reference
#/definitions/script

The condition has access to all fields of the workflow. Any string result or numerical result other then zero will be considered truthy and trigger execution of the then workflow. A falsy value will trigger execution of the else workflow.

thenrequired
reference
Any
else
reference
Any

Where is this used?

Other schemas that have a reference ($ref) to this schema.