Loading
Salesforce now sends email only from verified domains. Read More
Automate Your Business Processes
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Flow Operators in Decision, Wait, and Collection Filter Elements

          Flow Operators in Decision, Wait, and Collection Filter Elements

          Use condition operators to verify the value of a selected resource. Use conditions in Decision, Wait, and Collection Filter elements.

          Required Editions

          View supported editions.

          Use this reference to understand the supported operators that are available based on the selected data type for Resource.

          Note
          Note Looking for the sObject data type from Cloud Flow Designer? In Flow Builder, we replaced sObject with the Record data type. So, your sObject collection variables are now record collection variables.

          Apex-Defined

          Match the @AuraEnabled attribute’s Apex data type with a flow data type in this reference to determine the supported operators.

          Apex Data Type Flow Data Type
          Boolean Boolean
          Date Date
          DateTime Date/Time
          Decimal Number
          Double Number
          Integer Number
          List Collection
          Long Number
          String Text

          Boolean

          Check whether a Boolean resource’s value matches another value or resource.

          Operator True if... Supported Data Types
          Does Not Equal The value of the selected Resource doesn’t match what you enter or select for Value. Boolean
          Equals

          The value of the selected Resource matches what you enter or select for Value.

          • If the flow interview took that outcome, a decision outcome resolves to true.
          • If the flow interview evaluated the outcome’s manual conditions, but didn’t take the outcome, a decision outcome resolves to false.
          • If the flow interview didn’t evaluate the outcome’s manual conditions, a decision outcome resolves to null .
          • If the flow interview used AI to determine which decision outcome to take and the decision outcome wasn’t taken, a decision outcome resolves to false.
          • If the flow waited for the associated resume event, a wait configuration resolves to true .
          • If a data element or action element executed without error, it resolves to true. If a fault occurred, the element resolves to false. If the element didn’t execute, it resolves to null.
          Boolean
          Has Error Only supported in Decision elements, the selected Resource is an Action, Decision, Delete Records, or Update Records element in the flow. Use to determine whether the specified element encountered an error during the flow interview. Boolean
          Is Blank The value for Resource is either not set or references no value. Use to determine whether a field or variable value is set to no value similar to Is Null. See Text. Boolean
          Is Null The value for Resource is either not set or references no value. Use to determine whether a field or variable value is set to no value. Boolean
          Was Set

          The value for Resource is a field on a record variable, and that field has a value during the flow run. Was Set is true whenever the field has a value. The value comes from the flow, from the record when the flow started, from a user edit, or from automation outside the flow. Was Set is false only when the field is blank at the time the flow evaluates the condition.

          Boolean
          Was Visited Only supported for use in Decision and Wait elements, the selected Resource is an Action, Decision, Delete Records, or Update Records element in the flow. Use to determine whether the specified element was visited during the flow interview. Boolean

          Choice

          Every choice resource has a data type and obeys the operator rules for that data type. However, choice resources support one extra operator that other resources don’t, no matter what their data type is.

          Operator True If... Supported Data Types
          Was Selected

          A user selected that choice, picklist choice set, or record choice set in a screen component.

          If your flow references the same choice in multiple screens, Was Selected always respects the most recent screen that the flow visited.

          If your flow references the same choice with a text input in more than one place on the same screen, this operator always respects the first usage in the screen.

          Boolean

          Collection

          Check whether a Collection resource’s value contains or matches another value or resource.

          Operator True If... Supported Data Types
          Contains An item in the collection that’s selected for Resource contains the same value as Value.

          Resource of the same data type.

          For record collection variables, only record resources with the same object type are supported.

          Does Not Equal

          The collection that’s selected for Resource doesn’t match the collection that’s selected for Value.

          Two record collection variables are unequal if they include different fields or if the fields have different values.

          Collection of the same data type.

          For record collection variables, only record collection variables with the same object type are supported.

          Equals

          The collection that’s selected for Resource matches the collection that’s selected for Value

          Two record collection variables are equal if they include the same fields and those fields have the same values.

          Collection of the same data type.

          For record collection variables, only record collection variables with the same object type are supported.

          Is Empty An empty collection Boolean
          Is Null The value for Resource is either not set or references no value. Use to determine whether a field or variable value is set to no value. Boolean

          Currency and Number

          Check whether a Currency or Number resource’s value matches, is larger than, or is smaller than another value or resource.

          Operator True If... Supported Data Types
          Does Not Equal The value for Resource doesn’t match what’s entered or selected for Value.
          • Currency
          • Number
          Equals The value for Resource matches what’s entered or selected for Value.
          • Currency
          • Number
          Greater Than The value for Resource is larger than what’s entered or selected for Value.
          • Currency
          • Number
          Greater Than or Equal The value for Resource is larger than what’s entered or selected for Value or is the same.
          • Currency
          • Number
          Less Than The value for Resource is smaller than what’s entered or selected for Value.
          • Currency
          • Number
          Less Than or Equal The value for Resource is smaller than what’s entered or selected for Value or is the same.
          • Currency
          • Number
          Is Blank The value for Resource is either not set or references no value. Use to determine whether a field or variable value is set to no value similar to Is Null. See Text. Boolean
          Is Null The value for Resource is either not set or references no value. Use to determine whether a field or variable value is set to no value. Boolean
          Was Set

          The value for Resource is a field on a record variable, and that field has a value during the flow run. Was Set is true whenever the field has a value. The value comes from the flow, from the record when the flow started, from a user edit, or from automation outside the flow. Was Set is false only when the field is blank at the time the flow evaluates the condition.

          Boolean

          Date and Date/Time

          Check whether a Date or Date/Time resource’s value matches, is before, or is after another value or resource.

          Operator True If... Supported Data Types
          Does Not Equal The value for Resource doesn’t match what’s entered or selected for Value.
          • Date
          • Date/Time
          Equals The value for Resource matches what’s entered or selected for Value.
          • Date
          • Date/Time
          Greater Than The value for Resource is a later date or time than what’s entered or selected for Value.
          • Date
          • Date/Time
          Greater Than or Equal The value for Resource is a later date or time than what’s entered or selected for Value or is the same date or time.
          • Date
          • Date/Time
          Less Than The value for Resource is an earlier date or time than what’s entered or selected for Value.
          • Date
          • Date/Time
          Less Than or Equal The value for Resource is an earlier date or time than what’s entered or selected for Value or is the same date or time.
          • Date
          • Date/Time
          Is Blank The value for Resource is either not set or references no value. Use to determine whether a field or variable value is set to no value similar to Is Null. See Text. Boolean
          Is Null The value for Resource is either not set or references no value. Use to determine whether a field or variable value is set to no value. Boolean
          Was Set

          The value for Resource is a field on a record variable, and that field has a value during the flow run. Was Set is true whenever the field has a value. The value comes from the flow, from the record when the flow started, from a user edit, or from automation outside the flow. Was Set is false only when the field is blank at the time the flow evaluates the condition.

          Boolean

          Picklist

          Check whether a Picklist resource’s value matches or contains another value or resource.

          Note
          Note These operators treat the resource’s value as a text value.
          Operator True If... Supported Data Types
          Contains

          The value for Resource contains what’s entered or selected for Value.

          For example, if the value of {!varPicklist} is yellow-green, the condition {!varPicklist} Contains green evaluates to true.

          • Boolean
          • Currency
          • Date
          • Date/Time
          • Multi-Select Picklist
          • Number
          • Picklist
          • Text
          • Time
          Does Not Equal The value for Resource doesn’t match what’s entered or selected for Value.
          • Boolean
          • Currency
          • Date
          • Date/Time
          • Multi-Select Picklist
          • Number
          • Picklist
          • Text
          • Time
          Equals The value for Resource matches what’s entered or selected for Value.
          • Boolean
          • Currency
          • Date
          • Date/Time
          • Multi-Select Picklist
          • Number
          • Picklist
          • Text
          • Time
          Is Blank The value for Resource is either not set or references no value. Use to determine whether a field or variable value is set to no value similar to Is Null. See Text. Boolean
          Is Null The value for Resource is either not set or references no value. Use to determine whether a field or variable value is set to no value. Boolean
          Was Set

          The value for Resource is a field on a record variable, and that field has a value during the flow run. Was Set is true whenever the field has a value. The value comes from the flow, from the record when the flow started, from a user edit, or from automation outside the flow. Was Set is false only when the field is blank at the time the flow evaluates the condition.

          Boolean

          Multi-Select Picklist

          Check whether a multi-select picklist resource’s value matches or contains another value or resource.

          Note
          Note These operators treat the resource’s value as a text value. If the resource’s value includes multiple items, the operators treat the value as one string that happens to include semi-colons. It doesn’t treat each selection as a different value. For example, the operators treat red; blue; green as a single value rather than three separate values.
          Operator True If... Supported Data Types
          Contains

          The value for Resource contains what’s entered or selected for Value.

          When you use this operator for a multi-select picklist resource, be aware of the values that a user can enter. To check that a specific value is included and that value is also included as part of another value, create a flow formula resource that uses the INCLUDES() function.

          For example, your org has a Color multi-select picklist value. Among the possible values are “green” and “yellow-green”. If both “green” and “yellow-green” are acceptable values, use the Contains operator in a flow condition. If only “green” is an acceptable value, create a formula that uses the INCLUDES() function.

          • Boolean
          • Currency
          • Date
          • Date/Time
          • Multi-Select Picklist
          • Number
          • Picklist
          • Text
          • Time
          Does Not Equal

          The value for Resource doesn’t match what’s entered or selected for Value.

          Order matters. If you aren’t sure which order the values that you’re checking for appear, use the INCLUDES() function in a flow formula. For example, if you compare “red; blue; green” to “blue; green; red” using the Does Not Equal operator, that condition resolves to true.

          • Boolean
          • Currency
          • Date
          • Date/Time
          • Multi-Select Picklist
          • Number
          • Picklist
          • Text
          • Time
          Equals

          The value for Resource exactly matches what’s entered or selected for Value.

          Order matters. If you aren’t sure which order the values that you’re checking for appear, use the INCLUDES() function in a flow formula. For example, if you compare “red; blue; green” to “blue; green; red” using the Equals operator, that condition resolves to false.

          • Boolean
          • Currency
          • Date
          • Date/Time
          • Multi-Select Picklist
          • Number
          • Picklist
          • Text
          • Time
          Is Blank The value for Resource is either not set or references no value. Use to determine whether a field or variable value is set to no value similar to Is Null. See Text. Boolean
          Is Null The value for Resource is either not set or references no value. Use to determine whether a field or variable value is set to no value. Boolean
          Was Set

          The value for Resource is a field on a record variable, and that field has a value during the flow run. Was Set is true whenever the field has a value. The value comes from the flow, from the record when the flow started, from a user edit, or from automation outside the flow. Was Set is false only when the field is blank at the time the flow evaluates the condition.

          Boolean

          Record

          Check whether a record resource’s value matches another value or resource.

          Operator True If... Supported Data Types
          Does Not Equal The value for Resource doesn’t match what’s entered or selected for Value. Record with the same object type
          Equals The value for Resource matches what’s entered or selected for Value. Record with the same object type
          Is Blank The value for Resource is either not set or references no value. Use to determine whether a field or variable value is set to no value similar to Is Null. See Text. Boolean
          Is Null The value for Resource is either not set or references no value. Use to determine whether a field or variable value is set to no value. Boolean

          Stage

          Note
          Note Stages resolve to the fully qualified stage name: namespace.flowName:stageName or flowName:stageName.

          Check whether a Stage resource or the $Flow.CurrentStage global variable matches, ends with, or starts with another value or resource.

          Operator True If... Supported Data Types
          Does Not Equal The value for Resource doesn’t match what’s entered or selected for Value.
          • Stage
          • Text
          Equals The value for Resource matches what’s entered or selected for Value.
          • Stage
          • Text
          Ends With The end of the value for Resource matches what’s entered or selected for Value.
          • Stage
          • Text
          Is Blank The value for Resource is either not set or references no value. Use to determine whether a field or variable value is set to no value similar to Is Null. See Text. Boolean
          Is Null The value for Resource is either not set or references no value. Use to determine whether a field or variable value is set to no value. Boolean
          Starts With The beginning of the value for Resource matches what’s entered or selected for Value.
          • Stage
          • Text

          Check whether $Flow.ActiveStages contains a particular stage, matches the value of a Text collection, or is null.

          Operator True If... Supported Data Types
          Contains $Flow.ActiveStages contains an item that matches the resource that’s selected for Value.
          • Stage
          • Text
          Does Not Equal The collection that’s selected for Resource doesn’t match $Flow.ActiveStages. Text collection
          Equals The collection that’s selected for Resource doesn’t match $Flow.ActiveStages. Text collection
          Is Null $Flow.ActiveStages value is either not set or references no value. Boolean

          Text

          Check whether a Text resource’s value matches, contains, ends with, or starts with another value or resource.

          Note
          Note
          • Before values are compared to a text resource, they’re converted into string values.
          • Stages resolve to the fully qualified stage name: namespace.flowName:stageName or flowName:stageName.
          Operator True If... Supported Data Types
          Contains The value for Resource contains what’s entered or selected for Value.
          • Boolean
          • Currency
          • Date
          • Date/Time
          • Multi-Select Picklist
          • Number
          • Picklist
          • Stage
          • Text
          • Time
          Does Not Equal The value for Resource doesn’t match what’s entered or selected for Value.
          • Boolean
          • Currency
          • Date
          • Date/Time
          • Multi-Select Picklist
          • Number
          • Picklist
          • Stage
          • Text
          • Time
          Equals The value for Resource matches what’s entered or selected for Value.
          • Boolean
          • Currency
          • Date
          • Date/Time
          • Multi-Select Picklist
          • Number
          • Picklist
          • Stage
          • Text
          • Time
          Ends With The end of the value for Resource matches what’s entered or selected for Value.
          • Boolean
          • Currency
          • Date
          • Date/Time
          • Multi-Select Picklist
          • Number
          • Picklist
          • Stage
          • Text
          • Time
          Has Error Only supported in Decision elements, the selected Resource is an element in the flow, and it has an error during the flow interview. The Create Records element supports this operator.
          • Boolean
          • Text
          Is Blank The value for Resource is set to zero characters or only white space. Use to determine whether a field or variable value is set to zero characters or only white space. Boolean
          Is Null The value for Resource is either not set or references no value. Use to determine whether a field or variable value is set to no value. Boolean
          Starts With The beginning of the value for Resource matches what’s entered or selected for Value.
          • Boolean
          • Currency
          • Date
          • Date/Time
          • Multi-Select Picklist
          • Number
          • Picklist
          • Stage
          • Text
          • Time
          Was Set

          The value for Resource is a field on a record variable, and that field has a value during the flow run. Was Set is true whenever the field has a value. The value comes from the flow, from the record when the flow started, from a user edit, or from automation outside the flow. Was Set is false only when the field is blank at the time the flow evaluates the condition.

          Boolean
          Was Visited Only supported in Decision and Wait elements, the selected Resource is an element in the flow, and it has been visited during the flow interview. The Create Records element supports this operator.
          • Boolean
          • Text

          Time

          Check whether a Time resource’s value matches, is before, or is after another value or resource.

          Operator True If... Supported Data Types
          Does not equal The value for Resource doesn’t match what’s entered or selected for Value. Time
          Equals The value for Resource matches what’s entered or selected for Value. Time
          Greater Than The value for Resource is a later time than what’s entered or selected for Value. Time
          Greater Than or Equal The value for Resource is a later time than what’s entered or selected for Value or is the same time. Time
          Is Blank The value for Resource is either not set or references no value. Use it to determine whether a field or variable value is set to no value similar to Is Null. See Text. Boolean
          Is Null The value for Resource is either not set or references no value. Use it to determine whether a field or variable value is set to no value. Boolean
          Less Than The value for Resource is an earlier time than what’s entered or selected for Value. Time
          Less Than or Equal The value for Resource is an earlier time than what’s entered or selected for Value or is the same time. Time
           
          Loading
          Salesforce Help | Article