BT.has

BT.has

BT.has

Function

determines whether the current interpreter has a built-in capability.

Syntax

Parameters

ParametersTypeRequiredDefault valueDescription
nameStringYesNoneCapability name, such as web, desktop, net, process.

Return Value

TypeDescription
BoolReturns true if the ability exists, otherwise returns false.

Examples

Notes

  • Capability detection does not start the service, does not open the device, and does not perform a runtime scan.
- Use lowercase snake_case or lowercase words for ability names.