GETENV


All processes have an environment associated with them that contains a number of variables indicating the state of various parameters. The GETENV function allows a jBC program to determine the value of any of the environment variables associated with it.

 

COMMAND SYNTAX

GETENV(expression, variable)

 

SYNTAX ELEMENTS

The expression should evaluate to the name of the environment variable whose value is to be returned. The function will then assign the value of the environment variable to variable. The function itself returns a Boolean TRUE or FALSE value indicating the success or failure of the function.

 

NOTES

There are environment variables specific to jBASE.
See the UNIX documentation for the Bourne shell (sh) or the Windows on-line help for information on environment variables.

See also PUTENV

 

EXAMPLE

IF GETENV("PATH", ExecPath) THEN
    CRT "Execution path is ":ExecPath
END ELSE
    CRT "Execution path is not set up"
END


jBC