```sh
code = exit [code]
```
Exits the script with the given code stored in the output variable.
### Parameters
A number as exit code or none for 0.
### Return Value
The exit code.
### Examples
```sh
# exit with code '0'
code = exit
# exit with code '1'
code = exit 1
```