---
title: "Truth Tables in Rule Set"
slug: "truth-tables-rule-set"
description: "This document shows how to use Truth Tables in a Rule Set in Decisions. Using Truth Tables allows designers to avoid creating numerous rules that have the same Conditions and differ only in Value to evaluate data against. The document provides a tutorial on how to create a Flow that uses a Rule Set with a Truth Table to evaluate an account's Company and Job Title. "
updated: 2025-06-20T15:03:40Z
published: 2025-06-20T15:03:40Z
---

> ## 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.

# Truth Tables in Rule Set

## Overview

Using Truth Tables in Rule Sets allows designers to avoid the creation of numerous Rules that have the same conditions but differ only in the value to evaluate data against.

---

## Example

This example fetches accounts that have been created in Decisions. A Truth Table within the Rule Set will run to confirm each account has a designated Company and Job Title. The output from the Rule Set is passed to the True/False rule to stop the Flow on the first false. Below is a downloadable example to [import](/v9/docs/importing-and-exporting-projects) into Decisions.

[Truth Tables in Rule Set-18052020-102940.zip](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/Truth%20Tables%20in%20Rule%20Set-18052020-102940.zip)

1. Create a new [Rule Set](/v9/docs/rule-sets).
2. Click **Setup**on the top action bar to open the **Setup Rule Set** dialog window. Under the RULE TYPES category, select **Truth Tables** and then click SAVE to close the dialog window.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2025-06-17_13h37_50.png)
3. On the top action panel, click ADD TRUTH TABLE and select **Truth Table**. Enter "Company and Job Title Truth Table" in the Name field and click CREATE TRUTH TABLE.
4. When the Rule Designer appears, click **[Select Data Element]** and choose **Item > Company**.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2024-08-14_14h48_11.png)
5. Next, click **[Pick Verb]** and select **Is**from under the **Common > Evaluate** category and click CLOSE.
6. Next, add evaluation values (Decisions.com, That Other Company) under the **Item.Company is**column.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2024-08-14_14h49_13.png)
7. Click the **plus sign** next to the Item.Company is column to add another condition. Configure this second condition to evaluate **Item.JobTitle In List**.  
Then, select both check boxes under **Default Output Data**. This example will use a static list of Job Titles (Designer, Administrator) as a constant. ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2024-08-14_14h50_55.png)
8. Click **Save**and close the Rule Designer window.
9. In a Designer Project, create a Flow by clicking [CREATE FLOW](/v9/docs/create-flows) on the global action bar and selecting **Flow** on the top of the dialog window.
10. Next, add the **Fetch Entities** step.
11. With the Fetch Entities step still selected, enter "account" in the **Type Name** dropdown list box and select **Account [DecisionsFramework...]**.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2025-06-20_10h54_47.png)
12. Add the **For Each Element** step. This can be found by searching foreach in the steps toolbox
13. Under the DATA category, select **Account** as the **Type**.
14. Next, under **Collection** on the INPUTS category, click EDIT. Then, select **Entity Results** and click DONE.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2025-06-20_10h55_43.png)
15. Next, click the **Next** path on the For Each Element step. Then, select **Designer****Entities****> Rules** and add the **Run Rule Set** step.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2025-06-20_10h58_24.png)
16. In the Flow Designer, click the Done path of the Run Rule Set. Add the **True False Rule**step from the **Data****> Rules** category.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2025-06-20_11h00_06.png)
17. Under the INPUTS category, select **Unknown**and choose**Select From Flow**.  
Then, select **FlowRuleSetResult.First.RuleResult**and select DONE to close the window. By choosing FlowRuleSetResult.First.RuleResult, the Flow will stop on the first false. ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2025-06-20_11h00_51.png)
18. Next, connect the **False**path on the True False Rule to the **End**step and the **True**path to the For Each Element step.  
Then, connect the **No Results** path to the For Each Element step. Then, connect the Done path from the For each Element step to the End path.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2025-06-20_11h02_38.png)
19. Click Save to save changes to the Flow.

---

## Debug

1. Click **Debug**on the top action panel. Then, click START DEBUGGING.

---

For further information on Rules, visit the [Decisions Forum](https://community.decisions.com/categories/Rules).
