> For the complete documentation index, see [llms.txt](https://docs.gentee.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gentee.org/stdlib/system.md).

# System

General system functions are described here.

* [GetEnv( str name ) str](/stdlib/system.md#getenv-str-name-str)
* [SetEnv( str name, bool|int|str val )](/stdlib/system.md#setenv-bool-or-int-or-str-name)
* [UnsetEnv( str name )](/stdlib/system.md#unsetenv-str-name)

## Functions

### GetEnv(str name) str

The *GetEnv* function returns the value of the environment variable.

```go
Print( GetEnv("PATH"))
// the same as
Print( $PATH )
```

### SetEnv(bool|int|str name)

The *SetEnv* function assigns the specified value to the environment variable.

```go
SetEnv("MYVARB", true)
SetEnv("MYVARI", 101)
SetEnv("MYVAR", "Test value")
// the same as
$MYVARB = true
$MYVARI = 101
$MYVARI = "Test value"
```

### UnsetEnv(str name)

The *UnsetEnv* function removes the environment variable.
