--- title: "Creating Composite Type in Truth Table" slug: "creating-composite-type-in-truth-table" description: "Use Truth Tables to evaluate input data against configured conditions and return multiple outputs through a Composite Type." updated: 2026-06-30T16:19:43Z published: 2026-06-30T16:19:43Z canonical: "documentation.decisions.com/creating-composite-type-in-truth-table" --- > ## 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. # Creating Composite Type in Truth Table ## Overview A Truth Table receives user data and evaluates it against configured conditions based on input data. A Truth Table can create a data type to represent combined outputs called a Composite Type. It is used to output multiple rows of a Truth Table with multiple outputs. ## Example The following example will take in a Zip Code and output the city and state as a composite type. 1. In the Designer Project, click CREATE RULE and select CREATE. Click **Truth Table** and select **External Data** **Truth Table**. Name the External Truth Table and click CREATE. 2. Click the **+** beside GIVEN.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1781282026004.png) 3. In the **Input Data** window, enter "Zip Code" in the **Name** field and change the **Type** to **Int32 [Number]**. Click **Save** and close the window.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1782836371530.png) 4. Click **[Select Data Element]** and select **Zip Code**. Click CLOSE.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1781282086098.png) 5. For **[Pick Verb]** window, select **Equals** and click CLOSE. ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1781282143355.png) 6. Hover over the **Default Output Data** column and click the pencil icon. 7. On the **Edit Output Data** window, enter "City" in the Name field and change the Type to **String [Text]**. Click OK.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1781282176888.png) 8. Click the plus next to the City column and add a column with the name "State". Click OK. 9. On the **Properties** panel, click EDIT EXTERNAL DATA TRUTH TABLE.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1781282208327.png) 10. Under **Data Sources** on the Report Designer, click **Add**. In the search box, enter "csv" and select CSV/Excel Data Source.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1781706695646.png) 11. On the Properties panel under the [SETTINGS] category, click **Choose a File** under **CSV or Excel File**, Select a file and click OPEN.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1781706718176.png) 12. Select the **Zip Code** Data Field under **Data Fields**. On the Properties panel under the SETTINGS category, change the **Title** to **Zip Code Equals**.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1781706951726.png) 13. Click Save and close the Report Designer. 14. On the Properties panel of the Rule Designer, select the **Create Composite Type** option. Uncheck the **Has No Match Outcome** option under the Truth Table. Click Save and close the Truth Table.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1781707002910.png) 15. In the Designer Project, click CREATE FLOW. Name the Flow and click CREATE. 16. Click the **Done** path of the **Start** step. Select the **Run Truth Table** step and click ADD.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1781707104585.png) 17. On the Properties panel, select PICK OR CREATE TRUTH TABLE and select PICK. Locate the External Truth Table and click PICK.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1781707130495.png) 18. Connect the Done path to the **End** Step.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1781707152152.png) 19. Select the Run Truth Table step and enter "12345" in the Zip Code field under the INPUTS category.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1781707204470.png) 20. Click Save to save changes to the Flow. ## Debug 1. On the top action bar, click **Debug** and click **START DEBUGGING.** 2. After the debugger runs, select the Truth Table step, select **Execution 1**, and select **View Input/Output Data**. A window will appear that will display the composite data created from the result of the input.