> ## 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:notnull

> arc:notnull を使用して、指定したアイテムにアトリビュートの値があることをチェックします。arc:exists はこのキーワードのシノニムです。

export const siteNameShort = "Arc";

`arc:notnull` キーワードを使用して、指定したアイテムにアトリビュートの値があることをチェックします。[arc:exists](./op-arc-exists) キーワードは、`arc:notnull` のシノニムです。

## パラメータ

* **item**：チェックするアイテム。指定されていない場合は、デフォルトのアイテムが使われます。
* **attr**：チェックするアトリビュートの名前。
* **action**：エクスプレッションがtrue と判断された場合に実行されるアクション。使用できる値は、`break` または`continue` です。

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

None

## 例

欠けているタイトルアトリビュートを定義します。

```xml theme={null}
<arc:call op="fileListDir" output="out">
  <arc:notnull attr="filename">
      <arc:set attr="[title]" value="[filename]"/>
    <arc:else>
      <arc:set attr="[title]" value="Unnamed file"/>
    </arc:else>
  </arc:notnull> 
  <arc:push title="[title]">
  [out.file:*]
  </arc:push>
</arc:call>
```

## 関連項目

* [arc:else](./op-arc-else)：条件が充足されない場合に実行されるブロックを作成する。
