ไวยากรณ์
getfflag(name: string): string | nilArguments
| ชื่อ | ชนิด | คำอธิบาย |
|---|---|---|
name | string | Exact fast flag name to read. |
Returns
| ชื่อ | ชนิด | คำอธิบาย |
|---|---|---|
flagValue | string | nil | String form of the flag value, or nil when the flag is missing or unsupported. |
คำอธิบาย
Reads a Roblox fast flag by exact name and returns its value as a string. Missing or unsupported flags return nil.
เรียกด้วย parameter 1 ค่า: name ตาราง arguments อธิบายค่าที่จำเป็นและค่าที่ปรับพฤติกรรม
ส่งคืน flagValue (string | nil) ใช้ตาราง returns เพื่อแยกค่าที่สำเร็จ ผลลัพธ์ nil และ error ที่จัดการต่อได้
ตัวอย่าง
Read a Roblox fast flag by exact name. Known bool and int flags are returned as strings.
local value = getfflag("SomeFFlagName")
if value ~= nil then
print(value)
end