--- title: "Using Truth Tables to Dynamically Pass an Image to a Form" slug: "using-truth-tables-to-dynamically-pass-an-image-to-a-form" updated: 2021-03-12T15:05:28Z published: 2021-03-12T15:07:13Z canonical: "documentation.decisions.com/using-truth-tables-to-dynamically-pass-an-image-to-a-form" --- > ## 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. # Using Truth Tables to Dynamically Pass an Image to a Form 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.14.0 | | **Root Folder** | Example Lab - Dynamic Image on Form | | **Modules** | None | | **Dependencies** | None | This project shows one method of deciding which image of a series of images to display on a form at runtime. --- ## Explanation In this example, a truth table is used to output an image that is then mapped into a form. The truth table is executed by using the output of a random number generator. The truth table will then output image A if the number is even and image B if the number is odd. The corresponding image is then passed to the Form and displayed to the user. Reference Articles[Creating Truth Tables](https://documentation.decisions.com/docs/creating-your-first-truth-table) ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2021-01-12_09h40_14.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 [SPECIFY VERSION] or later using our [Importing/Exporting](https://documentation.decisions.com/docs/exporting-and-importing-overview) article. [ExampleLab[DynamicImage].zip](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/ExampleLab%5BDynamicImage%5D.zip) ---