> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Sample 4. Step 6.4: The final part of the document, ShortFooter element

> Configure the ShortFooter Static Text element to find the word Total only when LongFooter is not detected, excluding the ExtraTag region from the search.

To create a ShortFooter element:

1. In the **InvoiceFooter** element, create an optional element of type Static Text and name it **ShortFooter**.
2. Click the Static Text tab.
3. In the Search text field, type the text to search for: **Total**.
4. Click the Search Constraints tab and exclude the already detected **ExtraTag** element from the search area of the **ShortFooter** element. This will prevent the program from finding the word "**Total**" in the name of the table:
   * Click the Add... button next to the Exclude regions of elements field.
   * Select **ExtraTag** from the list of elements.
   * Click **OK**. The `SearchElements.InvoiceFooter.ExtraTag` string will appear in the Exclude regions of elements field.
5. Since the search text is always located below the name of the **Description** column, click the Relations tab and specify the following relation:
   * Below the **AddTag** element, Offset = 100
6. As decided earlier, the **ShortFooter** element is searched for only if **LongFooter** has not been detected. To implement this condition, specify the following in Advanced pre-search relations: Do not search for the element if **LongFooter** has been detected. In the [FlexiLayout language](/flexi-capture/fls/code/general-code), this condition can be written as follows:

```text theme={null}
If not LongFooter.IsNull then Dontfind();
```
