---
schema_version: "1"
id: d19652331f34d17349d00bd71666aa7903a76fa42209d9903ba8728603fe473d
title: Define Conditions in a Wait Element
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/flow_build_logic_conditions_wait_element.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.flow_build_logic_conditions_wait_element.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 492cf408c2d6307b587d4d5d1ed8d6d0ccec09742c0105dd9e36ab32711292cb
description: Control when a flow waits for a specific resume event.
products:
  - Flow Builder
  - Salesforce Platform
release: "264"
---
# Define Conditions in a Wait Element

Control when a flow waits for a specific resume event.

### 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;"><a href="https://help.salesforce.com/s/articleView?id=platform.flow_ref_supported_editions.htm&amp;release=264.0.0&amp;type=5" title="Learn about the editions and user interfaces that support Flow Builder. Some Flow Builder features integrate with other Salesforce products that require additional licenses.">View supported editions.</a></td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:left;vertical-align:top;" id="d70529e59">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d70529e59 ">To open, edit, create, activate or
              deactivate a flow using all flow types, elements, and features available in Flow
              Builder, including Einstein and Agentforce for Flow:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d70529e59 ">Manage Flow</td>

          </tr>
        </tbody>
      </table>

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-platform_automation-264-0-0-production-enus/60568438-ec7e-4665-acd1-7c80dcbe60d5/images/icon_note.png)

Note You don't need to be an admin to have the Manage Flow permission. Ask your admin to add it to your profile or permission set.

Before you begin, add the Wait element to your flow..

1. Identify the logic between the conditions.
    
    <table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
            <colgroup>
              <col style="width:32.432432432432435%">
              <col style="width:67.56756756756756%">
            </colgroup>
            <thead class="slds-text-title_caps ">
              <tr class="">
                <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d70529e109">Option</th>
                <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d70529e112">Behavior </th>
              </tr>
            </thead>
            <tbody>
              <tr class="">
                <td data-label="Option" class="slds-cell-wrap" style="vertical-align:top;" headers="d70529e109 "><strong class="uicontrol">Always Wait—No Conditions</strong></td>

                <td data-label="Behavior" class="slds-cell-wrap" style="vertical-align:top;" headers="d70529e112 "> </td>

              </tr>
              <tr class="">
                <td data-label="Option" class="slds-cell-wrap" style="vertical-align:top;" headers="d70529e109 ">
                  <strong class="uicontrol">All Conditions Are Met</strong>
                </td>

                <td data-label="Behavior" class="slds-cell-wrap" style="vertical-align:top;" headers="d70529e112 ">If one of the conditions is false, the flow doesn’t wait for the associated
                  resume event.</td>

              </tr>
              <tr class="">
                <td data-label="Option" class="slds-cell-wrap" style="vertical-align:top;" headers="d70529e109 ">
                  <strong class="uicontrol">Any Condition Is Met</strong>
                </td>

                <td data-label="Behavior" class="slds-cell-wrap" style="vertical-align:top;" headers="d70529e112 ">If one of the conditions is true, the flow waits for the associated resume
                  event.</td>

              </tr>
              <tr class="">
                <td data-label="Option" class="slds-cell-wrap" style="vertical-align:top;" headers="d70529e109 ">
                  <strong class="uicontrol">Custom Condition Logic Is Met</strong>
                </td>

                <td data-label="Behavior" class="slds-cell-wrap" style="vertical-align:top;" headers="d70529e112 ">
                  <p>When you select this option, provide the condition logic by entering up to
                    1000 characters. Use: </p>
                  <ul>
                    <li>Numbers to refer to each condition</li>

                    <li><kbd>AND</kbd>, <kbd>OR</kbd>, or
                      <kbd>NOT</kbd> to identify which combination of conditions
                      must be true
                    </li>

                    <li>Parentheses to group parts of the string together</li>

                  </ul>
                  <p>If you enter <kbd>AND</kbd>, it’s the same as if you selected
                    <strong class="uicontrol">All Conditions Are Met</strong>. If you enter
                    <kbd>OR</kbd>, it’s the same as if you selected <strong class="uicontrol">Any
                      Condition Is Met</strong>. If you enter any other logic, make sure that
                    you include a number for each condition.
                  </p>
                  <p style="margin-bottom:0;">For example, for <kbd>1
                      AND NOT(2 OR 3)</kbd>, the flow evaluates whether the first condition
                    is <code>true</code>, and the second or third condition is
                    <code>false</code>.
                  </p>
                </td>

              </tr>
            </tbody>
          </table>
2. Define conditions.
    
    At run time, the conditions are evaluated in the order you specify.
    
    <table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
            <colgroup>
              <col style="width:24%">
              <col style="width:76%">
            </colgroup>
            <thead class="slds-text-title_caps ">
              <tr class="">
                <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d70529e237">Column Header</th>
                <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d70529e240">Description</th>
              </tr>
            </thead>
            <tbody>
              <tr class="">
                <td data-label="Column Header" class="slds-cell-wrap" style="vertical-align:top;" headers="d70529e237 ">
                  <strong class="uicontrol">Resource</strong>
                </td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d70529e240 ">Flow resource to evaluate the value of.</td>

              </tr>
              <tr class="">
                <td data-label="Column Header" class="slds-cell-wrap" style="vertical-align:top;" headers="d70529e237 ">
                  <strong class="uicontrol">Operator</strong>
                </td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d70529e240 ">The available operators depend on the data type selected for
                  <strong class="uicontrol">Resource</strong>.
                </td>

              </tr>
              <tr class="">
                <td data-label="Column Header" class="slds-cell-wrap" style="vertical-align:top;" headers="d70529e237 ">
                  <strong class="uicontrol">Value</strong>
                </td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d70529e240 ">
                  <p><strong class="uicontrol">Resource</strong> and <strong class="uicontrol">Value</strong> in the
                    same row must have compatible data types. </p>
                  <p>Options: </p>
                  <ul>
                    <li>Select an existing flow resource, such as a variable or screen
                      component.</li>

                    <li>Create a resource.</li>

                    <li>Manually enter a literal value or merge field. </li>

                  </ul>
                  <p style="margin-bottom:0;">When you add or subtract a number from a date value, the date adjusts in
                    days, not hours.</p>
                </td>

              </tr>
            </tbody>
          </table>