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");