---
schema_version: "1"
id: 4ba415c5796b85cb34973aa3fdadc7645fa02c7364e74e7726a51a82d6e74491
title: Contains Operator in Decision Tables
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/bre_contains_operator_decision_table.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.bre_contains_operator_decision_table.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: eac67af16343edc4ff7e662810812999d0640580a60c82220cbadbf4b87ead55
description: Use the Contains operator to retrieve an output if the decision table row value is an exact match or subset of the query value. The Contains operator is case-sensitive and applies only to input fields in the decision table.
products:
  - Industry Solutions
  - Cross Cloud
release: "264"
---
# Contains Operator in Decision Tables

Use the Contains operator to retrieve an output if the decision table row value is an exact match or subset of the query value. The Contains operator is case-sensitive and applies only to input fields in the decision table.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong> Editions for clouds that have Business Rules Engine enabled</td></tr></tbody></table>

Here are some examples of how the Contains operator works for the data types that support the operator.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:33.33333333333333%">
          <col style="width:33.33333333333333%">
          <col style="width:33.33333333333333%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d10664e64">Data Type</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d10664e66">Description</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d10664e68">EXAMPLE</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Data Type" class="slds-cell-wrap" style="vertical-align:top;" headers="d10664e64 ">Text</td>
            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10664e66 ">Retrieves the output value if the input text is an exact match or subset of the query
              text. The output is sorted by the sort order for the input columns that’s defined in the
              decision table.</td>
            <td data-label="EXAMPLE" class="slds-cell-wrap" style="vertical-align:top;" headers="d10664e68 ">
              <p>A decision table column is configured like this:</p>
              <ul>
                <li>Column: Applicant Name</li>
                <li>Data Type: Text</li>
                <li>Operator: Contains</li>
                <li>Sort Order: Ascending with Blank Values First</li>
              </ul>
              <p>The Applicant Code column has PQRSTV, PRQST, PQRS, NNABCOP, and PQRSTUVW as the row
                values. </p>
              <p><kbd>PQRSTUVW</kbd> is passed as the query string for lookup. The
                table returns the output values for the matching input cells in ascending order starting
                with blank values, followed by PQRS, PQRST, and PQRSTUVW</p>
              <p style="margin-bottom:0;">Here PQRS, PQRST, and
                PQRSTUVW are considered as matching values because they’re the subset or exact match to the
                query string PQRSTUVW.</p>
            </td>
          </tr>
          <tr class="">
            <td data-label="Data Type" class="slds-cell-wrap" style="vertical-align:top;" headers="d10664e64 ">Text</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10664e66 ">Retrieves the output value if the input text is an exact match or subset of the query text. The output is sorted by the sort order for the input columns that’s defined in the decision table.</td>

            <td data-label="EXAMPLE" class="slds-cell-wrap" style="vertical-align:top;" headers="d10664e68 ">
              <p>A decision table column is configured like this: </p>
              <ul>
                <li>Column: Job Title </li>

                <li>Data Type: Text </li>

                <li>Operator: Contains</li>

                <li>Sort Order: Ascending with Blank Values First </li>

              </ul>
              <p>The Job Title column includes the following row values: Senior Regional General
                Manager, General Manager, Regional General Manager, and Assistant General Manager.
              </p>
              <p>When <kbd>Regional General Manager</kbd> is passed as the input for
                lookup with the Contains operator, the table returns the output values for the
                cells that contain an exact match or subset of the input string.</p>
              <p style="margin-bottom:0;">The values
                that contain an exact match or subset of "Regional General Manager" are General
                Manager and Regional General Manager.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Data Type" class="slds-cell-wrap" style="vertical-align:top;" headers="d10664e64 ">Picklist</td>
            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d10664e66 ">
              <p>Retrieves the output value if the input value is an exact match or subset of the query
                value. </p>
              <p style="margin-bottom:0;">Output sort order doesn’t apply to columns of the Picklist data type.</p>
            </td>
            <td data-label="EXAMPLE" class="slds-cell-wrap" style="vertical-align:top;" headers="d10664e68 ">
              <p>A decision table column is configured like this:</p>
              <ul>
                <li>Column: Status</li>
                <li>Data Type: Picklist</li>
                <li>Operator: Contains</li>
              </ul>
              <p>The Status column has Inactive, Active, Draft, and Not Applicable as the row
                values.</p>
              <p style="margin-bottom:0;">The string <kbd>Inactive</kbd> is passed as the query value to
                look up. The table returns the output values Active and Inactive since both the values are
                an exact match or subset of the query value.</p>
            </td>
          </tr>
        </tbody>
      </table>