control-of-flow
You can control the flow of pypyr pipeline execution between step-groups with the following handy steps:
- pypyr.steps.call
 - pypyr.steps.jump
 - pypyr.steps.switch
 - pypyr.steps.stopstepgroup
 - pypyr.steps.stoppipeline
 - pypyr.steps.stop
 
You can call other pipelines from within a pipeline with:
On top of this, you can control which individual steps should run or not using the conditional step decorators:
Looping happens on the step-level, using the following step decorators:
You can set a while or foreach loop on any given step, including on
a call step or a
pype step, which lets you call another
step-group or an entire pipeline repeatedly in a loop.
control-of-flow instructions
| title | description | 
|---|---|
| conditional logic | How to run or skip steps conditionally. | 
| loops | How to loop or iterate over a step. | 
| assert | Stop pipeline if item in context is not as expected. | 
| call | Call another step-group. Continue from the same place after the called groups complete. | 
| foreach | Repeat step for each item in list. | 
| jump | Jump to another step-group. The rest of the current step-group doesn’t run. | 
| pype | Call another pipeline from the current pipeline. | 
| run | Run this step only if condition True. | 
| skip | Skip this step if condition True. | 
| stop | Stop pypyr entirely. | 
| stoppipeline | Stop current pipeline. | 
| stopstepgroup | Stop current step-group. | 
| switch | Conditional branching for IF-THEN-ELSE control-of-flow. | 
| while | Repeat step until stop condition is True or up to the maximum iteration count. |