---
title: "Changing Truth Table Execution Results"
slug: "changing-truth-table-execution-results"
updated: 2024-06-25T20:34:35Z
published: 2024-06-25T20:34:35Z
---

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

# Changing Truth Table Execution Results

## Overview

**External, Rule,** and **Truth Tables** are able to execute and return the first, last, or all matching rows once the table has been evaluated. This allows for more control over the resulting output, allowing specific outcomes to be the default result. The following article will demonstrate how to change the execution result type.

## Execution Result Type

Below is an overview of the three options available for the Execution Result Type

| Execution Result Type | Description |
| --- | --- |
| **All Matches** | Default selection. This option returns all matching rows once the table has been evaluated |
| **First Match Only** | Returns only the first matching row from the table |
| **Last Match only** | Returns only the last matching row from the table |

## Example

This example will use a preconfigured **Truth Table**. The Truth Table has a single Int value as its input. Depending on the Int value, the Truth Table will execute and return rows containing a string. This example will cover how to display the last matching row for a Truth table.

1. Create and define a [Truth Table](/v9/docs/creating-a-truth-table)
2. Once The **Truth Table** has been created and added to the**Flow**, select the Truth Table and expand the **Advanced** header in the **Properties.**Notice the **Execution Result Type** setting. ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2024-06-25_16h30_46.png)
3. By default the setting defaults to returns all matches. Since this example covers returning the last matching row, Select the drop-down under the setting and change**All Matches** to**Last Match only**.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2024-06-25_16h31_32.png)
4. Once the setting has been changed, run the table through the **Debugger**. Notice that only the last row is the only row being returned.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2022-01-20_10h51_32.png)

---

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