--- title: "Runtime Selection Sub-Flow" slug: "runtime-selection-sub-flow" updated: 2021-03-12T15:05:24Z published: 2021-03-12T15:07:04Z canonical: "documentation.decisions.com/runtime-selection-sub-flow" --- > ## Documentation Index > Fetch the complete documentation index at: https://documentation.decisions.com/llms.txt > Use this file to discover all available pages before exploring further. # Runtime Selection Sub-Flow Example Lab ArticleWhile Example Lab projects are resources for public use, articles and assets are not actively maintained. Screenshots and features are from the specified version below. These references may become dated as new versions are released. --- ## Overview | ## Example Lab Details | | --- | | **Version** | 6.12.1 | | **Root Folder** | Example Lab-Runtime Selection Sub Flows | | **Modules** | None | | **Dependencies** | None | This Example Lab demonstrates how the "Runtime Selection" setting works on a Sub Flow. --- ## Explanation There are two Flows created for this example: "Alphabet Flow" and "Number Flow", which will be used by the **Truth Table**. Both Flows use a **Show Pop-up** step to display a notification on the left side of the Studio. For this example, the **Main Flow** takes in a string value. The **Truth Table** evaluates if the input variable is '1' or 'a'. The **Truth Table** outputs the Flow ID of the "Alphabet Flow" or "Number Flow" based on the input. The **Run Flow** step is configured to "Runtime Selection" and a Default Flow is selected. The output of the Truth Table is mapped into the input of this step. For testing, run the Main Flow and either a "1" or "a" for the input. The Pop-up will show which Flow was run. Reference Articles[Using the Runtime Selection Enabled Property](https://documentation.decisions.com/docs/using-the-runtime-selection-enabled-property) [Creating Your First Truth Table](https://documentation.decisions.com/docs/creating-your-first-truth-table) ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/Runtime%20Flo.png) ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/truth%20table%20logic.png) ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/Runtime%20FloW%20logic.png) --- ## Project Download The examples attached were developed to be instructional and were not developed as officially supported components. For more information or to engage our service team to develop fully supported, production quality solutions, please contact services@decisions.com. Import the project below to a Decisions environment on version 6.12.1 or later using our [Importing/Exporting](https://documentation.decisions.com/docs/exporting-and-importing-overview) article. [ExampleLab[RuntimeSelectionSubFlow].zip](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/ExampleLab%5BRuntimeSelectionSubFlow%5D.zip) ---