Miscellaneous

identifyexecutor

Returns two strings: the executor name followed by the executor version.

Syntax

identifyexecutor(): string | string

Returns

NameTypeDescription
executorNamestringExecutor name string.
executorVersionstringExecutor 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)