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 26.1-26.3 Function Reference 26.1-26.3 All View Local Help Center View Online Help Center Version: