has_env
has_env
Function
Determine whether the specified variable exists in the user's global environment.
Syntax
has_env(name)
Parameters
| Parameters | Type | Required | Default value | Description |
|---|---|---|---|---|
| name | String | No | '' | The name of the user global variable to check. |
Return value
| Type | Description |
|---|---|
| Bool | Returns true if the user global variable exists, otherwise returns false. |
Example
name = 'BT' result = has_env('name') // Output: true print result
Notes
- Only check the global variable table.