Reference

Environment

Get Variable

Input A string representing the name of the variable.
Output The value of the variable. If the variable does not exist, an empty string is returned.

Signature

env_get(a: String): String

Example

env_get("HOME") // returns "/home/user"

Note: This function is not implemented on the web platform.

Has Variable

Input A string representing the name of the variable.
Output True if the variable exists, false otherwise.

Signature

env_has(a: String): Boolean

Example

env_has("HOME") // returns true

Note: This function is not implemented on the web platform.