---
name: "exit"
type: command
status: ok
groups: ["Program Flow"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/exit
revid: 329489
updated: 2022-07-29T12:29:43Z
---

# exit

*Command · Program Flow · Arma 3 v0.50 · introduced in Operation Flashpoint v1.00*

## Description

Stops the execution of a SQS script.

It is ignored in [SQF Scripts](../topics/SQF_Syntax.md).

## Syntax

```sqf
exit
```

**Returns:** [Nothing](../topics/Nothing.md)

## Examples

### Example 1

SQS Syntax:

```sqs
? not alive player : exit
```

## See also

[exitWith](../commands/exitWith.md) · [Control Structures](../topics/Control_Structures.md)

<sub>Source: [BI Community Wiki — exit](https://community.bistudio.com/wiki/exit) (revision 329489).</sub>
