---
url: /process-functions/script-environment.md
description: >-
  This function is used to return the environment settings of the MODLR
  instance, whether production, or development.
---

# script.environment

This function is used to return the environment settings of the MODLR instance, whether production, or development.

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

#### Example

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