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

# arc:last

> arc:last を使用して、arc:call または arc:enum が返すフィードで最後のアイテムが見つかった後にのみコードブロックを実行します。

export const siteNameShort = "Arc";

`arc:last` キーワードのスコープ内の{siteNameShort}Script キーワードは、最後のアイテムが見つかった後にのみ、かつアイテムが[arc:call](./op-arc-call) または[arc:enum](./op-arc-enum) で返された場合のみ、実行されます。

`arc:last` 構文は、最後のアイテムが処理された後に実行されます。これはフィードの最後のアイテムとのアクセスを保持します。スコープにアイテムがない場合は、[arc:first](./op-arc-first) も`arc:last` も実行されません。

## パラメータ

None

## アトリビュートの制御

None

## 例

それぞれのアイテムが行として表示されているフィードからHTML テーブルを作成します：

```xml theme={null}
<arc:call op="listCustomers">
  <arc:first>
    <table>
    <thead>
      <arc:enum item="customer">
        <td>[_attr]</td>
      </arc:enum>
    </thead>
  </arc:first>
  <tr>
    <arc:enum item="customer">
      <td>[_value]</td>
    </arc:enum>
  </tr>
  <arc:last>
    </table>
  </arc:last>
</arc:call>
```

## 関連項目

* [arc:first](./op-arc-first)：最初の反復のみコードブロックを実行する。
