Miscellaneous

getexecutorname

Returns Real's executor name as one string.

ไวยากรณ์

getexecutorname(): string

Returns

ชื่อชนิดคำอธิบาย
executorNamestringExecutor name string.

คำอธิบาย

Returns Real's executor name as one string.

เรียกโดยไม่ต้องมี parameter ฟังก์ชันอ่าน context ที่ต้องใช้จาก runtime state ปัจจุบัน

ส่งคืน executorName (string) ใช้ตาราง returns เพื่อแยกค่าที่สำเร็จ ผลลัพธ์ nil และ error ที่จัดการต่อได้

ตัวอย่าง

Read the executor name string exposed by Real.

local name = getexecutorname()
print(name)