Easypt

getEnvironmentVariable

..Root.system.getEnvironmentVariable

Returns value of environment variable which name is equal to key.

Child of:

system

Signatures:

NativeCallable, Callable

Example:

import("system");

if (system.osName.==("windows"), {
    log(system.getEnvironmentVariable("TEMP"));
}, {
    log(system.getEnvironmentVariable("TMPDIR"));
});

Possible output:

C:\Users\XYZ\AppData\Local\Temp