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

# ロジック

> ロジックフローアクションを構成して、if/then条件の追加、共有変数の保存、エラーメッセージの表示、値のマッピングを行う方法を説明します。

このロジックアクションのリストを使用すると、フォーム条件付きロジックの追加、共有変数の保存、値のマッピング、カスタムエラーメッセージの表示を行うことができます。

<div id="ifthen-condition">
  ## if/then条件
</div>

True/Falseブランチを含む条件付きアクションを追加して、入力またはプロパティに基づいてフローの動作をカスタマイズします。

<Frame>
  <img src="https://mintcdn.com/generaltranslationinc/TAtXfl0iCCUYtXZs/docs/images/ja-jp/cdy7uua7fh8z/4ehTUSu8W1LibUd1uj3x5s/00d76b15c68746ed74e44127804c9557/if-then-condition-action.png?fit=max&auto=format&n=TAtXfl0iCCUYtXZs&q=85&s=9f4b584c8b61faf044f9a48ee976bec7" alt="" width="1866" height="890" data-path="docs/images/ja-jp/cdy7uua7fh8z/4ehTUSu8W1LibUd1uj3x5s/00d76b15c68746ed74e44127804c9557/if-then-condition-action.png" />
</Frame>

<div id="input-settings">
  ### 入力設定
</div>

<table class="table">
  <thead>
    <tr>
      <th><b>パラメーター</b></th>
      <th><b>説明</b></th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>条件</td>

      <td>
        カスタマイズ可能な条件アクションです。その結果に応じて、`True`と`False`に枝分かれします。`AND`や`OR`の演算子を使用して、異なる条件をネストできます。
      </td>
    </tr>
  </tbody>
</table>

<div id="output-object">
  ### 出力応答
</div>

<table class="table">
  <thead>
    <tr>
      <th><b>プロパティ</b></th>
      <th><b>種類</b></th>
      <th><b>説明</b></th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>`result`</td>
      <td>ブール値</td>
      <td>条件の結果を基に、`true`または`false`の応答を返します。</td>
    </tr>
  </tbody>
</table>

<div id="output-object-example">
  ### 出力オブジェクトの例
</div>

```json lines theme={null}
{
  "result": true
}
```

<div id="store-shared-variable">
  ## 共有変数の保存
</div>

フォーム内およびフロー全体で使用できるプライベート状態で変数を保存します。

これらの共有変数は、`{{vars.*}}`を使用して参照できます **。** 詳細については、「[変数](/docs/ja-JP/ja-jp/customize/forms/variables)」を参照してください。

<Frame>
  <img src="https://mintcdn.com/generaltranslationinc/TAtXfl0iCCUYtXZs/docs/images/ja-jp/cdy7uua7fh8z/4MO9wvChhnCJOg9OAdWuEf/98182a2bd8b6cf4c4baebefb96bce121/stored-shared-variable.png?fit=max&auto=format&n=TAtXfl0iCCUYtXZs&q=85&s=bda9acc0e52130f97eb58854ee8d7f01" alt="" width="757" height="338" data-path="docs/images/ja-jp/cdy7uua7fh8z/4MO9wvChhnCJOg9OAdWuEf/98182a2bd8b6cf4c4baebefb96bce121/stored-shared-variable.png" />
</Frame>

<div id="input-settings">
  ### 入力設定
</div>

<table class="table">
  <thead>
    <tr>
      <th><b>パラメーター</b></th>
      <th><b>説明</b></th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>データフィールド</td>
      <td>フォーム内やフロー全体での使用に非公開状態で保管される変数です。変数を追加するには、キーと値のペアを使用します。</td>
    </tr>
  </tbody>
</table>

<div id="show-error-message">
  ## エラーメッセージを表示
</div>

ユーザーにカスタムエラーメッセージを表示します。

<Warning>
  このフローのアクションはフローを終了させます。その後にアクションを挿入しても、実行されません。
</Warning>

<Frame>
  <img src="https://mintcdn.com/generaltranslationinc/8DIt0xu_-cUu1jhk/docs/images/ja-jp/cdy7uua7fh8z/1Kd4SyaBtAC9S8nfWFeGfh/6e42b16c0ab69dc6d026fb3601133fbe/show-error-message-flow-action.png?fit=max&auto=format&n=8DIt0xu_-cUu1jhk&q=85&s=78da66f514e3a69b412f53cc50972698" alt="" width="761" height="347" data-path="docs/images/ja-jp/cdy7uua7fh8z/1Kd4SyaBtAC9S8nfWFeGfh/6e42b16c0ab69dc6d026fb3601133fbe/show-error-message-flow-action.png" />
</Frame>

<div id="input-settings">
  ### 入力設定
</div>

<table class="table">
  <thead>
    <tr>
      <th><b>パラメーター</b></th>
      <th><b>説明</b></th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>エラーメッセージ</td>

      <td>
        ユーザーに表示するエラーメッセージです。
      </td>
    </tr>
  </tbody>
</table>

<div id="input-value-mapping">
  ## 入力値のマッピング
</div>

入力変数をその値に基づいて出力にマッピングします。

<Frame>
  <img src="https://mintcdn.com/generaltranslationinc/TAtXfl0iCCUYtXZs/docs/images/ja-jp/cdy7uua7fh8z/4VtAr4vCSXtKlSaxtiXQhV/bcb07221f688483aa2010d80394ae630/input-value-mapping.png?fit=max&auto=format&n=TAtXfl0iCCUYtXZs&q=85&s=02cddaf52d2bcc6589b0cc154fb99ed7" alt="" width="749" height="506" data-path="docs/images/ja-jp/cdy7uua7fh8z/4VtAr4vCSXtKlSaxtiXQhV/bcb07221f688483aa2010d80394ae630/input-value-mapping.png" />
</Frame>

<div id="input-settings">
  ### 入力設定
</div>

<table class="table">
  <thead>
    <tr>
      <th><b>パラメーター</b></th>
      <th><b>説明</b></th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>入力値（必須）</td>
      <td>入力変数です。</td>
    </tr>

    <tr>
      <td>マッピングテーブル</td>
      <td>入力変数値と出力をマッピングします。</td>
    </tr>

    <tr>
      <td>デフォルトの出力値</td>
      <td>マッピングテーブルに出力値が設定されていない場合に使用するデフォルトの出力値を設定します。</td>
    </tr>
  </tbody>
</table>

<div id="output-object">
  ### 出力応答
</div>

<table class="table">
  <thead>
    <tr>
      <th>プロパティ</th>
      <th>種類</th>
      <th>説明</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>`result`</td>
      <td>文字列</td>
      <td>入力にマッピングされた値を返します。</td>
    </tr>
  </tbody>
</table>

<div id="output-object-example">
  ### 出力オブジェクトの例
</div>

```json lines theme={null}
{
	"result": "Please enter a valid email address."
}
```
