You are here:
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.
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.
|
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. |
|
| Equals | The value for Resource matches what’s entered or selected for Value. |
|
| Greater Than | The value for Resource is larger than what’s entered or selected for Value. |
|
| Greater Than or Equal | The value for Resource is larger than what’s entered or selected for Value or is the same. |
|
| Less Than | The value for Resource is smaller than what’s entered or selected for Value. |
|
| Less Than or Equal | The value for Resource is smaller than what’s entered or selected for Value or is the same. |
|
| 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. |
|
| Equals | The value for Resource matches what’s entered or selected for Value. |
|
| Greater Than | The value for Resource is a later date or time than what’s entered or selected for Value. |
|
| 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. |
|
| Less Than | The value for Resource is an earlier date or time than what’s entered or selected for Value. |
|
| 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. |
|
| 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.
| 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 |
|
| Does Not Equal | The value for Resource doesn’t match what’s entered or selected for Value. |
|
| Equals | The value for Resource matches what’s entered or selected for Value. |
|
| 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.
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. |
|
| 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. |
|
| 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. |
|
| 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
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. |
|
| Equals | The value for Resource matches what’s entered or selected for Value. |
|
| Ends With | The end of the value for Resource matches what’s entered or selected for Value. |
|
| 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. |
|
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. |
|
| 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.
- 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. |
|
| Does Not Equal | The value for Resource doesn’t match what’s entered or selected for Value. |
|
| Equals | The value for Resource matches what’s entered or selected for Value. |
|
| Ends With | The end of the value for Resource matches what’s entered or selected for Value. |
|
| 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. |
|
| 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. |
|
| 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. |
|
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 |

