---
title: "Returning Multiple Values in Truth Tables"
slug: "using-multiple-data-return-truth-tables"
description: "This document shows how to use multiple Data Return Truth Tables in Decisions. This involves selecting Data Return Rule (Multiple), under the Rule Type setting within the Rule Designer for Truth Tables."
tags: ["truth table", "rule"]
updated: 2025-06-06T14:32:24Z
published: 2025-06-06T14:32:24Z
---

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

# Returning Multiple Values in Truth Tables

## Overview

Truth Tables can be configured to return more than one outcome, which is helpful when there is a single set of data that a developer may need to be analyzed in multiple ways.

The result of the Truth Table will be outputted as a list of objects.

---

## Example

This example will explore creating a basic **Truth Table** that takes in the age of an applicant to return multiple true/false evaluations based on the criteria configured.

The Truth Table will show whether the applicant is able to rent a car, whether a Young Driver fee is applied, and the estimated cost per day is.

1. [Create a Truth Table.](https://documentation.decisions.com/v9/docs/creating-a-truth-table) When the **Data Definitions** window appears, define an input as **Age** and set the **Type** to be **Int32**, then close the **Data Definitions** window.
2. Click **[Select Data Element]** and pick **Age** from the list, then click Close.
3. The **Pick Verb** window will open automatically, select **Between** from the **Number Rules** section and then click Close.
4. Hover over the top **Default Output Data** cell and click the pencil icon when it appears.
5. Replace **DefaultOutputData** with **Can Rent**for the **Name** field then click OK. Leave **Boolean [Logical]** as the **Type**.
6. Click the plus icon to the right of the **Can Rent** cell. Define this new Output Data with the name **IsYoungDriver** and **Boolean [Logical]** as the **Type**, then click OK.
7. Repeat the above steps to create a new output column with the name **CostPerDay** and **Int32** as the **Type**, then click OK.
8. Now that the outputs are configured, Define three separate rows for testing, as shown below  
[Video](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2022-02-07_11h31_45.mp4)

---

## Debug

1. Click the **Debug** button on the top **Action Bar** of the **Rule Designer**.
2. Under the **Default Inputs** section, define the **Age** as **23**, then click **Run Capturing All**.  
  
The Truth Table will evaluate the input data. The output will evaluate whether they are able to rent a car, if they are a young driver, and their estimated cost per day is 45.  
  
![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2024-08-06_10h51_03.png)

---

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