# core.script_api:end_script()


End the script execution and set the file status acordingly.


Usage

``` python
core.script_api:end_script(finished=None)
```


## Parameters


`finished: bool = None`  
Mark the script as finished (True), unfinished (False) or do not change the status (None).
