Syntax
identifyexecutor(): string | stringReturns
| Name | Type | Description |
|---|---|---|
executorName | string | Executor name string. |
executorVersion | string | Executor version string. |
Description
Returns two strings: the executor name followed by the executor version.
Call it without parameters. The function reads the needed context from the current runtime state.
It returns executorName (string), executorVersion (string). Use the returns table to separate successful values from nil results and recoverable errors.
Example
Read Real's executor name and version as two return values.
local name, version = identifyexecutor()
print(name, version)