# environment

The `environment` statement specifies the name of environment to use for resolving [global variables](/3.5.4/data-pipelines/transform.md#global-variables).

## Syntax

**`environment`**` `*`name`*

## Details

The `environment` statement selects the predefined environment to use for [global variable](/3.5.4/data-pipelines/transform.md#global-variables) lookup. It is and error to specify the environment which is not defined in global database.

If no environment specified, default environment (the one specified as *default* in global database) is assumed.

{% hint style="info" %}
Environment can be changed many times without limitations, and change affects only global variables that are referenced first time within the script, e.g. all global variables, resolved (copied to local variables) retain their values.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://olddocs.exivity.io/3.5.4/data-pipelines/transform/language/environment.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
