--- title: "Adding conditions to show or hide a slide" slug: "adding-conditions-to-showhide-a-slide" description: "Learn how to show or hide PowerPoint slides based on conditions, perfect for highlighting employee achievements with dox42's Slide Controller." tags: ["AddIn V5.0.2.6", "task"] updated: 2026-09-17T09:41:08Z published: 2026-09-17T09:41:08Z canonical: "help.dox42.com/adding-conditions-to-showhide-a-slide" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.dox42.com/llms.txt > Use this file to discover all available pages before exploring further. # Adding conditions to show or hide a slide You can show or hide a slide in the generated presentation depending on a condition. For instance, you could add a special slide only for employees with outstanding achievements. ![Congratulations message with colorful balloons celebrating outstanding achievements and bonuses.](https://cdn.document360.io/3acc69da-1de2-431d-95a6-08ae83717b4a/Images/Documentation/Bildschirmfoto 2025-05-20 um 10.39.49.png) Slide with a Dox42 Datafield ## Steps 1. Open your PowerPoint template. 2. Go to the **dox42** ribbon and select **Insert** **Data Field.** ![Menu options for generating and managing data in the dox42 application interface.](https://cdn.document360.io/3acc69da-1de2-431d-95a6-08ae83717b4a/Images/Documentation/Bildschirmfoto 2025-05-20 um 09.32.36.png) **dox42** ribbon in PowerPoint The **dox42 Data Fields** explorer opens, which contains all available data fields. 3. Select the slide that you want to show or hide. 4. Select the **Control Slides** button in the **dox42** ribbon. ![Menu options for generating and managing data in the dox42 application interface.](https://cdn.document360.io/3acc69da-1de2-431d-95a6-08ae83717b4a/Images/Documentation/Bildschirmfoto 2025-05-20 um 09.32.36.png) **dox42** ribbon in PowerPoint The **dox42 Slide Controller** window opens. 5. Optional: From the **Repeat for Data Source** dropdown select the desired data source. > [!NOTE] > Note > > In our example we want to repeat the slide for every employee that matches the condition. Depending on your scenario, you can also skip this step. ![dox42 Slide Controller interface showing data source and condition settings for slides.](https://cdn.document360.io/3acc69da-1de2-431d-95a6-08ae83717b4a/Images/Documentation/Bildschirmfoto 2025-05-20 um 09.27.36.png) **dox42 Slide Controller** window 6. To define a condition: 1. Select the **Insert Data Field** button. The **dox42 Data Fields** explorer opens. 2. Select the desired data field. 3. Select **OK**. 4. Select the desired entry from the **Insert Operator** dropdown. 5. Insert a value for the condition, surrounded by quotation marks. ![dox42 Slide Controller interface showing data source and condition settings for slides.](https://cdn.document360.io/3acc69da-1de2-431d-95a6-08ae83717b4a/Images/Documentation/Bildschirmfoto 2025-05-20 um 11.39.23.png) Example: Condition in **Slide Controller** window 6. Optional: To add another condition, select an entry from the **Insert Logic Operator** dropdown and repeat steps d and f. 7. Select **OK**. The slide is now marked with the Control Slides icon in the upper left corner. ![Congratulations message for achieving a bonus, featuring colorful balloons in the background.](https://cdn.document360.io/3acc69da-1de2-431d-95a6-08ae83717b4a/Images/Documentation/Bildschirmfoto 2025-05-20 um 11.40.54.png) Slide with Control Slides icon 7. Save the PowerPoint template. ## Result You have configured a condition to show or hide a slide. When you [generate the document](/v1/docs/generating-a-document-for-testing), the slide will be shown or hidden depending on that condition. In our example, only one employee has an achievement value of `1.0` and therefore the slide is only generated for one employee and hidden for the others: ![Example slide for defining a condition](https://cdn.document360.io/3acc69da-1de2-431d-95a6-08ae83717b4a/Images/Documentation/Bildschirmfoto 2025-05-20 um 11.45.39.png) Example: Generated slide depending on a condition