getEnv
Syntax
getEnv(name, [default])
Arguments
name is a string scalar indicating the name of an environment variable.
default is a string scalar indicating the value to be returned when the environment variable does not exist. If it is unspecified, return an empty string.
Details
Return the value of the specified environment variable.
Examples
$ getEnv("path")
C:\ProgramData\DockerDesktop\version-bin;C:\Program Files\Docker\Docker\Resources\bin;
$ getEnv("JAVA_HOME");
C:\Program Files\Java\jdk1.8.0_191
$ getEnv("not_exist","not exist")
not exist