Loading
Ongoing maintenance for Salesforce HelpRead 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 Orchestration Operators in Decision Elements

          Flow Orchestration Operators in Decision Elements

          Use condition operators to verify the value of a selected resource. Conditions are used in Decision elements.

          Required Editions

          View supported editions for Flow Orchestration.

          Use this reference to understand the supported operators. The list is organized according to the data type that you select for Resource.

          Apex-Defined

          To determine which operators are supported, match the @AuraEnabled attribute’s Apex data type with the Flow Orchestration data type in this reference.

          Apex Data Type Flow Orchestration 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 orchestration run took an outcome, that decision outcome resolves to true.
          • If the orchestration run evaluated the manual conditions for a decision outcome, but didn’t take it, that decision outcome resolves to false.
          • If the orchestration run didn’t evaluate the manual conditions for a decision outcome, the decision outcome resolves to null.
          • If the orchestration run used AI to determine which decision outcome to take, all other decision outcomes resolve to false.
          • If the orchestration run executed a stage element without error, the stage element resolves to true.
          • If the orchestration run encountered a fault during its execution of a stage element, the stage element resolves to false.
          • If the orchestration run didn’t execute a stage element, the stage element resolves to null.
          Boolean
          Has Error Only supported in Decision elements, the Resource is a Decision or Stage element in the orchestration. Use to determine whether the resource encountered an error during the orchestration run. 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 in a record variable, and that field has been populated with a value at least one time in a flow called by a step in the orchestration. Boolean
          Was Visited Only supported in Decision elements, the Resource is a Decision or Stage element in the orchestration. Use to determine whether the orchestration run visited the specified element. 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 exact 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.

          If two record collection variables include different fields or if the fields have different values, they’re unequal.

          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.

          If two record collection variables include the same fields and those fields have the same values, they’re equal.

          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 in a record variable, and that field has been populated with a value at least one time in a flow called by a step in the orchestration. 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 in a record variable, and that field has been populated with a value at least one time in a flow called by a step in the orchestration. 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
          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
          Equals The value for Resource matches what’s entered or selected for Value.
          • Boolean
          • Currency
          • Date
          • Date/Time
          • Multi-Select Picklist
          • Number
          • Picklist
          • 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
          Was Set The value for Resource is a field in a record variable, and that field has been populated with a value at least one time in a flow called by a step in the orchestration. 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 semicolons. 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. If you want to check that a specific value is included and that value is also included as part of another value, create an orchestration 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 an orchestration 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
          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 in, use the INCLUDES() function in an orchestration 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
          Equals

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

          Order matters. If you aren’t sure of the order that the values you’re checking for appear, use the INCLUDES() function in an orchestration 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
          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 in a record variable, and that field has been populated with a value at least one time in a flow called by a step in the orchestration. 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

          Text

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

          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
          • Text
          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
          Equals The value for Resource matches what’s entered or selected for Value.
          • Boolean
          • Currency
          • Date
          • Date/Time
          • Multi-Select Picklist
          • Number
          • Picklist
          • Text
          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
          • 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
          • Text
          Was Set The value for Resource is a field in a record variable, and that field has been populated with a value at least one time in a flow called by a step in the orchestration. Boolean
           
          Loading
          Salesforce Help | Article