--- title: "Include Fragment" slug: "fragment" updated: 2024-08-08T18:03:05Z published: 2024-08-08T18:03:05Z canonical: "support.beast-code.com/fragment" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.beast-code.com/llms.txt > Use this file to discover all available pages before exploring further. # Include Fragment Include Fragment course cards in Beast Core 4 Courseware Editor allow you to designate where—and under what conditions—topical Lesson Fragments will appear within a Main Lesson. ## Prerequisites Prior to using {{glossary.Loop}}, {{glossary.Decisions}}, and **Include Fragment** course {{glossary.Cards}} cards in a lesson, you must populate the {{glossary.Fragments}} and {{glossary.Flag}}s sections in the Courseware Editor **Overview** tab. ![](https://cdn.document360.io/820c65d9-cf4e-4289-9237-5bc834b3bd3e/Images/Documentation/image(871).png) - A **Loop** and a **Decision** course card must precede **Include Fragment** cards on the **Lesson Outline** - See the [How to Create Loops, Flags, Decisions, and Fragments](/beast-core/docs/how-to-create-loops-flags-decisions-and-fragments) article for additional information - Add a separate **Include** **Fragment** course card for each **named** **Fragment** (in the **Overview** tab » **Fragments** section) that you want to include in the **Main Lesson** ![](https://cdn.document360.io/820c65d9-cf4e-4289-9237-5bc834b3bd3e/Images/Documentation/image(872).png) - Note that the **Include Fragment** card name is shortened to **“Fragment”** on the **Lesson Outline** ![](https://cdn.document360.io/820c65d9-cf4e-4289-9237-5bc834b3bd3e/Images/Documentation/image(873).png) ## How to Populate an Include Fragment Course Card 1. Select the first **Fragment** card (nested below the **Loop** card in the **Lesson Outline**) to open it for editing 2. In the card’s left-hand **Select Fragment** menu: - Left click the **All Lessons** dropdown arrow in the **Lesson Library** - Left click the arrow beside your desired lesson - Select the **Fragment** **name** you want to associate with this course card ![](https://cdn.document360.io/820c65d9-cf4e-4289-9237-5bc834b3bd3e/Images/Documentation/image(820).png) 1. In the card’s right-hand **Control Flow Flags** menu: - Remain on the default “**Run If…**” tab - Left click the **+Add Flag Check** to create a new entry line ![](https://cdn.document360.io/820c65d9-cf4e-4289-9237-5bc834b3bd3e/Images/Documentation/image(822).png) - Use the dropdown arrow in the **Select Flag** textbox to choose the **Flag** associated with your selected **Fragment** - Keep the default **equal sign** in the middle textbox - Use the up arrow to populate the right-hand textbox with the value **1** (which means: *Run this fragment if not complete*) ![](https://cdn.document360.io/820c65d9-cf4e-4289-9237-5bc834b3bd3e/Images/Documentation/image(823).png) 2. Left click the “**On Completion…**” tab on the card’s right-hand **Control Flow Flags** menu - Left click the **+Add Flag Check** to create a new entry line ![](https://cdn.document360.io/820c65d9-cf4e-4289-9237-5bc834b3bd3e/Images/Documentation/image(824).png) - Use the dropdown arrow in the **Select Flag** textbox to choose the **Flag** associated with your selected **Fragment** - Keep the default **equal sign** in the middle textbox - Use the up arrow to populate the right-hand textbox with the value **2** (which means: *Stop running this fragment if complete*) ![](https://cdn.document360.io/820c65d9-cf4e-4289-9237-5bc834b3bd3e/Images/Documentation/image(825).png) ![](https://cdn.document360.io/820c65d9-cf4e-4289-9237-5bc834b3bd3e/Images/Documentation/Frag_Pop.gif) 1. Repeat **Steps 1 - 4** for each additional **Fragment** card in the **Loop** section - Ensure that you populate a unique **Fragment** card for each **Lesson** **Fragment** you want to include in your **Main Lesson** > [!NOTE] > Important Notes: > > - The **Fragment** cards nested in the **Loop** section are for **Flag** management only > - DO NOT add **any** other nested course card below these Fragment cards > - You will develop unique **Lesson Tracks** for each **Fragment** in a separate process > - **Required follow-up** **course** **card:** > - **Always add** an un-nested Environment Card after the final **Fragment** card in the **Main Lesson** > - This achieves functional lesson flow back to the **Main Lesson** track upon the completion of all looped **Fragments** Used to switch between different viewers.