---
title: "About Truth Tables"
slug: "about-truth-tables"
description: "This document introduces Truth Tables in Decisions. Truth Tables are rules that compare possible combinations of multiple inputs that allow users to reach different outcomes depending on a specific combination. "
tags: ["truth table"]
updated: 2024-08-21T14:55:02Z
published: 2024-08-21T14:55:02Z
---

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

# About Truth Tables

## Overview

A **Truth Table** is a type of Rule that compares user data to multiple combinations of input data used in conditions to output the correct outcome or result. Each Row is configured with multiple statement Rules based on the input data used in the Truth Table. These **Statement Rules** then lead to an outcome set. If there are multiple rows returned in a Truth Table, there will be different combinations that the logic will evaluate while comparing the user input data.

The columns represent the input/output data in each row. For example, a Truth Table with **Name** and **Email** as input data would have one column for the Name statement Rule and another for the Email, then an outcome column for that row.

In the screenshot below, the Make, Model, and Year are the input data for the Rule with conditions configured for each row. The user input data is compared against each row to look for a row where the data matches the criteria which will then output the corresponding data.

For more information on creating a truth table, please visit the following article: [Create a Truth Table](/v9/docs/creating-a-truth-table). 

![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2020-09-21_10h08_36(1).png)

## Output Behavior Types

- **Data Return Rule (Single)**: Returns a single variable into the Flow.
- **Action Rule**: Passes in value and executes a Flow.
- **Data Return Rule (Multiple, Composite Type)**: Creates a new datatype based on the fields that are specified in the return. This allows the developer to dynamically create datatypes for the output of the Truth Table based on what fields are defined.
- **Data Return Rule (Multiple)**: Returns multiple variables into the Flow.

## Use Cases

**Truth Tables** can be used for a wide assortment of use cases. Truth Tables are best used for cases that involve **Rules** that utilize nested "if" statements. One such implementation may involve the validation of data such as evaluating when to approve a car rental for a company by looking at when the car is being rented, the cost to the company, and the position of the person requesting the rental. So if the request is made by Person X, and if it is rented for X amount of days, and costs the company X amount of dollars, then the request will be approved.

Due to their ability to be created using either internally or externally sourced data, they can be helpful for tracking data pertaining to a System and/or that System's Accounts such as Account permissions. This can be accomplished by evaluating specific permission as an Input and comparing it against Accounts within a system that have those permissions as the Output. This may be Input statically through the Rule Designer or dynamically by creating a Truth Table externally via a Report.

##

## Related

- [Truth Tables in Rule Set](/truth-tables-rule-set.md)
- [Truth Table Actions](/truth-table-actions.md)
- [Changing Truth Table Execution Results](/changing-truth-table-execution-results.md)
- [Creating a Truth Table](/creating-a-truth-table.md)
- [Returning Multiple Values in Truth Tables](/using-multiple-data-return-truth-tables.md)
- [Creating Composite Type in Truth Table](/creating-composite-type-in-truth-table.md)
- [Set Otherwise Action](/set-otherwise-action.md)
- [Overriding Verbs in Truth Tables](/overriding-verbs-in-truth-tables.md)
- [Creating an External Truth Table](/external-truth-table.md)
