> ## Documentation Index
> Fetch the complete documentation index at: https://phidatainc-studio-tools-doc.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Conditional Branching

> Runnable workflow examples under: cookbook/04_workflows/05_conditional_branching.

| Example                                                                                      | Description                                                                                                   |
| -------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- |
| [Loop In Choices](/examples/workflows/conditional-branching/loop-in-choices)                 | Demonstrates using a `Loop` component as one of the router choices.                                           |
| [Nested Choices](/examples/workflows/conditional-branching/nested-choices)                   | Demonstrates nested lists in router choices, which are converted into sequential `Steps` containers.          |
| [Router Basic](/examples/workflows/conditional-branching/router-basic)                       | Demonstrates topic-based routing between specialized research steps before content publishing.                |
| [Router With Loop](/examples/workflows/conditional-branching/router-with-loop)               | Demonstrates router-based selection between simple web research and iterative loop-based deep tech research.  |
| [Selector Media Pipeline](/examples/workflows/conditional-branching/selector-media-pipeline) | Demonstrates routing between image and video generation pipelines using a router selector.                    |
| [Selector Types](/examples/workflows/conditional-branching/selector-types)                   | Demonstrates router selector flexibility across string, step object, list, and nested-choice return patterns. |
| [Step Choices Parameter](/examples/workflows/conditional-branching/step-choices-parameter)   | Demonstrates using `step_choices` in a router selector for dynamic step selection.                            |
| [String Selector](/examples/workflows/conditional-branching/string-selector)                 | Demonstrates returning a step name string from a router selector.                                             |
