Miscellaneous

identifyexecutor

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

Синтаксис

identifyexecutor(): string | string

Возвраты

ИмяТипОписание
executorNamestringExecutor name string.
executorVersionstringExecutor version string.

Описание

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

Вызывай без параметров. Функция читает нужный контекст из текущего состояния runtime.

Возвращает executorName (string), executorVersion (string). Используй таблицу возвращаемых значений, чтобы отличать успех, nil и обрабатываемые ошибки.

Пример

Read Real's executor name and version as two return values.

local name, version = identifyexecutor()
print(name, version)