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 상태에서 필요한 context를 읽습니다.

executorName (string), executorVersion (string)을 반환합니다. 반환 표를 사용해 성공 값, nil 결과, 복구 가능한 오류를 구분하세요.

예제

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

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