Share this page

# Utils.getEnv

Returns the value of the specified environment variable. Returns an empty string if the specified variable does not exist.

Note: Support for this API in JavaScript code will be deprecated in TruClient. Instead use the Evaluate C step available in the TruClient Steps box.

    Utils.getEnv(name);

## Arguments

name. (string) Name of the environment variable.

## Return value

A string upon success.

## Example

Copy code

    var path = Utils.getEnv("PATH");

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: