Gentee
  • Gentee script programming language
  • Language Reference
    • Lexical elements
    • Types
    • Declarations
    • Statements
    • Error handling
    • Expressions
    • Running programs
    • Multithreading
    • Include and import
  • Standard Library Reference
    • Archiving
    • Array
    • Boolean
    • Buffer
    • Characters
    • Console
    • Constants
    • Context
    • Cryptography
    • Encoding
    • Files
    • Float numbers
    • Integer
    • Map
    • Multithreading
    • Network
    • Object
    • Path
    • Process
    • Regular expressions
    • Runtime
    • Sets
    • Strings
    • System
    • Time
  • Go Integration
    • Reference
    • Compilation and execution
    • Advanced features
    • Playground
  • Change language
    • Русский
Powered by GitBook
On this page
  • Functions
  • GetEnv(str name) str
  • SetEnv(bool|int|str name)
  • UnsetEnv(str name)

Was this helpful?

  1. Standard Library Reference

System

PreviousStringsNextTime

Last updated 4 years ago

Was this helpful?

General system functions are described here.

Functions

GetEnv(str name) str

The GetEnv function returns the value of the environment variable.

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

SetEnv(bool|int|str name)

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

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.

GetEnv( str name ) str
SetEnv( str name, bool|int|str val )
UnsetEnv( str name )