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.

استدعه من دون parameters. تقرأ الدالة السياق المطلوب من حالة runtime الحالية.

يعيد executorName (string), executorVersion (string). استخدم جدول returns للفصل بين قيم النجاح ونتائج nil والأخطاء القابلة للمعالجة.

مثال

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

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