getenv

Returns the value of an environment variable.

Syntax

getenv(str_expr)

Argument

str_expr
The environment variable.

Example

Templex Expression Result
{getenv("HOME")} "/usr/people/you"
{getenv("SHELL")} "/bin/csh"
{getenv("TZ")} "EST5DST"
{convert(getenv("COLUMNS"))} 80
{convert(getenv("LINES"))} 48

Comments

The result is always a string. convert must be used to convert string numbers into integers or reals.