# Exit script

この制御ステートメントは、スクリプトの実行を停止します。スクリプト内の任意の場所に挿入できます。

構文:

Exit Script [ (when | unless) condition ]

exit script ステートメントは、制御ステートメントであり、セミコロンまたは改行コードで終わるため、行をまたぐことはできません。

引数：

引数

| 引数 | 説明 |
| --- | --- |
| condition | True または False の評価を実施する論理式。 |
| when / unless | exit script ステートメントは、when または unless 句を使用して条件を付けることができます。 |

```
//Exit script
Exit Script;
 
//Exit script when a condition is fulfilled
Exit Script when a=1
```

## 詳細を見る

* [Exit](https://help.qlik.com/ja-JP/sense/May2026/Subsystems/Hub/Content/Sense_Hub/ChartLevelScripting/ControlStatements/Exit.htm)