---
url: /process-functions/process-exists.md
description: Checks whether a process exists in the model.
---

# process.exists

Checks whether a process exists in the model.

```js
process.exists(processNameOrId)
```

## Parameters

| Parameter | Type | Description |
|---|---|---|
| `processNameOrId` | `string` | The process's name or id. |

## Returns

`true` if the process exists, otherwise `false`.

## Examples

```js
// Check if a process exists.
const doesExist = process.exists("yourProcess");
console.log(doesExist); // true or false
```

## Related

* [process.execute](/process-functions/process-execute)
* [process.listAll](/process-functions/process-listall)
