System
General system functions are described here.

Functions

GetEnv(str name) str

The GetEnv function returns the value of the environment variable.
1
Print( GetEnv("PATH"))
2
// the same as
3
Print( $PATH )
Copied!

SetEnv(bool|int|str name)

The SetEnv function assigns the specified value to the environment variable.
1
SetEnv("MYVARB", true)
2
SetEnv("MYVARI", 101)
3
SetEnv("MYVAR", "Test value")
4
// the same as
5
$MYVARB = true
6
$MYVARI = 101
7
$MYVARI = "Test value"
Copied!

UnsetEnv(str name)

The UnsetEnv function removes the environment variable.
Last modified 1yr ago