ยูทิลิตี

identifyexecutor

ส่งกลับชื่อผู้ดำเนินการและเวอร์ชัน

ไวยากรณ์

identifyexecutor(): string | string

Returns

ชื่อชนิดคำอธิบาย
executorNamestringชื่อที่แสดงของผู้บริหาร
executorVersionstringสตริงเวอร์ชันผู้ดำเนินการ

คำอธิบาย

ส่งกลับชื่อผู้ดำเนินการและเวอร์ชัน

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

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

ตัวอย่าง

ตัวอย่างการเรียกใช้ด้วยค่าตัวอย่าง

local result = identifyexecutor()
print(result)