---
url: /process-functions/script-environment.md
description: Returns the environment the MODLR instance runs in.
---

# script.environment

Returns the environment the MODLR instance runs in, in lower case, such as `production` or `development`.

```js
script.environment()
```

## Returns

The environment's name.

## Examples

```js
if (script.environment() == "production") {
    // do something only in production environment.
}
```
