has_envs
has_envs
Function
Determine whether the specified name exists in the system environment.
Syntax
has_envs(name)
Parameters
| Parameters | Type | Required | Default value | Description |
|---|---|---|---|---|
| name | String | No | '' | The name of the system to check. |
Return value
| Type | Description |
|---|---|
| Bool | Returns true if there is a system function, library constructor, or system constant. |
Example
result = has_envs('fs') // Output: true print result
Notes
- Can be used to check whether the standard library entry exists.