---
title: "Exit"
description: "The Invantive Script statement that exits the program with an optional exit code."
language: en
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/en/docs/invantive-script/statements/exit
original: https://documentation.invantive.eu/en/docs/invantive-script/statements/exit
updated: 2026-08-09T00:00:00Z
license: https://documentation.invantive.eu/en/
---

# Syntax
The program can be exited using the syntax:
```
local exit [EXITCODE]
```
The exit code is optional; exit code 0 will be used when no value is provided.

# Examples
The following example exits the program with exit code 1:
```
local exit 1
```
