ไวยากรณ์
identifyexecutor(): string | stringReturns
| ชื่อ | ชนิด | คำอธิบาย |
|---|---|---|
executorName | string | Executor name string. |
executorVersion | string | Executor version string. |
คำอธิบาย
Returns two strings: the executor name followed by the executor version.
เรียกโดยไม่ต้องมี parameter ฟังก์ชันอ่าน context ที่ต้องใช้จาก runtime state ปัจจุบัน
ส่งคืน executorName (string), executorVersion (string) ใช้ตาราง returns เพื่อแยกค่าที่สำเร็จ ผลลัพธ์ nil และ error ที่จัดการต่อได้
ตัวอย่าง
Read Real's executor name and version as two return values.
local name, version = identifyexecutor()
print(name, version)