BT.has_path
BT.has_path
Function
determines whether the current valid PATH contains the specified path.
Syntax
BT.has_path(path)
Parameters
| Parameters | Type | Required | Default value | Description |
|---|---|---|---|---|
| path | String | Yes | None | The path to be determined. |
Return Value
| Type | Description |
|---|---|
| Bool | Returns true if PATH contains the path, otherwise returns false. |
Examples
BT.add_path('@/bin') result = BT.has_path('@/bin') // Output: true print result
Notes
- Path text comparison under Windows is not case sensitive.