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): StringExample
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): BooleanExample
env_has("HOME") // returns trueNote: This function is not implemented on the web platform.