BT.has
BT.has
Function
determines whether the current interpreter has a built-in capability.
Syntax
BT.has(name)
Parameters
| Parameters | Type | Required | Default value | Description |
|---|---|---|---|---|
| name | String | Yes | None | Capability name, such as web, desktop, net, process. |
Return Value
| Type | Description |
|---|---|
| Bool | Returns true if the ability exists, otherwise returns false. |
Examples
result = BT.has('process') // Output: true print result
Notes
- Capability detection does not start the service, does not open the device, and does not perform a runtime scan.