Miscellaneous

getfflagtype

Returns the detected type for a Roblox fast flag as "string", "bool", "int", or "unknown".

ไวยากรณ์

getfflagtype(name: string): "string" | "bool" | "int" | "unknown"

Arguments

ชื่อชนิดคำอธิบาย
namestringExact fast flag name to inspect.

Returns

ชื่อชนิดคำอธิบาย
flagType"string" | "bool" | "int" | "unknown"Detected flag type string.

คำอธิบาย

Returns the detected type for a Roblox fast flag as "string", "bool", "int", or "unknown". Missing or unsupported flags return "unknown".

เรียกด้วย parameter 1 ค่า: name ตาราง arguments อธิบายค่าที่จำเป็นและค่าที่ปรับพฤติกรรม

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

ตัวอย่าง

Read the detected type for a Roblox fast flag by exact name.

local flagType = getfflagtype("SomeFFlagName")

if flagType ~= "unknown" then
    print(flagType)
end