--- title: "Creating a Truth Table" slug: "creating-a-truth-table" description: "This document demonstrates how to create a Truth Table in Decisions. This will allow a user the ability to compare possible combinations of inputs, that result in a different outcome depending on the specific combination." tags: ["Rules", "truth table"] updated: 2026-06-30T15:53:01Z published: 2026-06-30T15:53:01Z canonical: "documentation.decisions.com/creating-a-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 a Truth Table ## Overview **Truth Tables** are a type of [Rule](/version-10/docs/rules) that compares input data against multiple combinations sets of conditions that return a specific result. In a Truth Table, conditions are divided into **Columns**, with specific combinations of these conditions forming **Rows**. Comparison values for conditions are defined as a **Cell**. ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1781190806643.png) Note:The Truth Table evaluates the output based on **AND** condition across the column within the same row. --- ## Example 1. In a Designer Project, Select **CREATE RULE** 2. In the Gallery, select **Truth Table** from either the Favorites or Truth Table sections. Name the Truth Table, then hit CREATE. ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1781189336593.png) 3. The Truth Table Designer automatically opens.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1781189358132.png) 4. Click the **+** beside GIVEN. ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1781190357041.png) 5. A window will open, and enter variables that the Truth Table will use. Click Save once finished.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1782834759815.png) 6. Click Select Data Element for a column. A menu will appear listing configured input values. Select an input value, then CLOSE.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1781190577809.png) 7. Another menu will appear, defining the condition verb for the column. These conditions will vary depending on the data type of the input. Select a condition, then click on Close.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1781190604177.png) 8. The cells for the column will be updated to reflect the datatype of the input data. Select the pencil icon to define a comparison value for a cell in the column. Then CLOSE.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1781190632003.png) 9. Repeat the process for the remaining row. Additional rows and columns can be added using [Truth Table Actions](/version-10/docs/truth-table-actions). 10. Edit the output data for the Truth Table, if needed. ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1781190734993.png) 11. Select Debug in the Global Action Bar to begin debugging the Truth Table.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1781190832560.png) 12. A window will open, allowing test values to be inputted.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1781190853221.png) 13. Once values are inputted, click START DEBUGGING. The Truth Table will then evaluate the conditions for every cell in the Truth Table; if an entire Row evaluates as True, then the result data will be outputted.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1781190863426.png) --- ## Optimizing Truth Tables When using [Converter Flows](/version-10/docs/using-converter-flows) with Truth Tables, it is recommended to enable [Outcome Caching](/version-10/docs/outcome-caching) for these Flows to improve performance, as this can drastically improve the Table's execution time.