env
env
Function
Read the user global environment object, or read the user global variable by name.
Syntax
env(name)
Parameters
| Parameters | Type | Required | Default value | Description |
|---|---|---|---|---|
| name | String | No | None | User global variable name. |
Return value
| Type | Description |
|---|---|
| Object/Any/Empty | Returns the user global object without parameters; returns the variable value if the name is hit; returns Empty if the name is not hit. |
Example
name = 'BT' result = env('name') // Output: BT print result
Notes
- Only read global variables saved by VM, do not scan local variables.