---
schema_version: "1"
id: 03713ea61aa61c840b6c69c636afc499f7ae88ae7059862f059478731686d811
title: Strategy Builder First Non-Empty Branch Element
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/nba_strategy_elements_first_nonempty.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.nba_strategy_elements_first_nonempty.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 17f4854118960f075d895667bfc80691a01cb8728db65e5c5daa43dc0ae2da71
description: The first non-empty branch element allows you to filter branches in the order they appear on the canvas. The first branch that contains recommendations is allowed through, all other branches are blocked.
products:
  - Flow Builder
  - Salesforce Platform
release: "264"
---
# Strategy Builder First Non-Empty Branch Element

The first non-empty branch element allows you to filter branches in the order they appear on the canvas. The first branch that contains recommendations is allowed through, all other branches are blocked.

### 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.nba_ref_editions.htm&amp;release=264.0.0&amp;type=5" title="Learn about the editions and user interfaces that support Next Best Action.">View supported editions for Next Best Action</a>.</td></tr></tbody></table>

 
| Field | Description |
| --- | --- |
| Label | The name of the element as it appears on the canvas. |
| API Name | The API name of the element. The API name must be unique. |
| Description | Optional description of the element and how it works within the strategy. |

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

Example Let’s say you have five different types of credit card offers that could be surfaced to a single user. Although each offer type is unique and must have its own branch, you only want to surface one type. To do so, filter all of your branches that contain credit card offers through a first non-empty branch, in priority order from top to bottom. Your element only allows the first branch that contains recommendations.

## Usage

Branches are filtered through the first non-empty branch element in the order that they appear on the canvas, moving from top to bottom. The element evaluates each branch until it finds one that contains recommendations. When the element recognizes that a branch contains recommendations, it allows those recommendations through and blocks recommendations from all other branches.

#### See Also

- [Suggest Options with Recommendation Strategies](https://help.salesforce.com/s/articleView?id=platform.einstein_next_best_action.htm&release=264.0.0&type=5 "Use Einstein Next Best Action to deliver tailored recommendations at the right moment. Define strategies that apply your business logic to surface a few high-value offers such as repairs, discounts, or add-on services. Present the final recommendations in your Automation Lightning app or Experience Builder site.")
- [Create Recommendations](https://help.salesforce.com/s/articleView?id=platform.nba_recommendations_app.htm&release=264.0.0&type=5 "Create offers or actions to recommend to users using Einstein Next Best Action. Recommendations are standard Salesforce records, similar to accounts and contacts, that are processed by strategies and associated with flows. Strategies determine which recommendation records are surfaced using business rules, predictive models, and other data sources. The result of this process is context-specific recommendations that you present to your users.")
- [Display Recommendations](https://help.salesforce.com/s/articleView?id=platform.nba_admin_using_strategies.htm&release=264.0.0&type=5 "After creating a strategy, choose a page to run your strategy and display your recommendations. You can use a Lightning record page, an app’s home page, an Experience Cloud site page, a Visualforce page, or an external site, depending on where you want recommendations to appear.")