> ## 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.

# サンプル 4. ステップ 6.4: 文書の最後の部分、ShortFooter 要素

> ShortFooter Static Text 要素を設定し、検索対象から ExtraTag の Region を除外して、LongFooter が検出されていない場合にのみ Total という単語を見つけます。

ShortFooter 要素を作成するには:

1. **InvoiceFooter** 要素内に、型が Static Text のオプション要素を作成し、名前を **ShortFooter** にします。
2. Static Text タブをクリックします。
3. Search text field に、検索するテキスト **Total** を入力します。
4. Search Constraints タブをクリックし、**ShortFooter** 要素の検索範囲から、すでに検出されている **ExtraTag** 要素を除外します。これにより、プログラムがテーブル名の中の "**Total**" という単語を見つけるのを防げます。
   * Exclude regions of elements field の横にある Add... ボタンをクリックします。
   * 要素のリストから **ExtraTag** を選択します。
   * **OK** をクリックします。すると、Exclude regions of elements field に `SearchElements.InvoiceFooter.ExtraTag` string が表示されます。
5. 検索テキストは常に **Description** 列名の下にあるため、Relations タブをクリックし、次のリレーションを指定します。
   * **AddTag** 要素の下、Offset = 100
6. 前の手順で決定したとおり、**ShortFooter** 要素は **LongFooter** が検出されなかった場合にのみ検索されます。この条件を実装するには、Advanced pre-search relations で次のように指定します: **LongFooter** が検出された場合は要素を検索しない。[FlexiLayout language](/ja/flexi-capture/fls/code/general-code) では、この条件は次のように記述できます:

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