cur_file
cur_file
Function
Returns the current source code file path.
Syntax
cur_file(complete)
Parameters
| Parameters | Type | Required | Default value | Description |
|---|---|---|---|---|
| complete | Bool | No | false | Returns the complete path when true; otherwise returns the display path. |
Return value
| Type | Description |
|---|---|
| String | Returns the current source code file path. |
Example
result = cur_file() // Output: String echo(type(result))
Notes
- Normally returns
in eval scripts.