Share this page

# Utils.isEnvExists

Checks the existence of a specified environment variable.

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.isEnvExists(name);

## Arguments

name. (string) Name of the environment variable.

## Return value

true if the specified environment variable exists, and false if it does not exist.

## Example

Copy code

    Utils.isEnvExists("PATH"); // returns true
    Utils.isEnvExists("TC_kukuku"); // returns false

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