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