语法
getfflag(name: string): string | nil参数
| 名称 | 类型 | 描述 |
|---|---|---|
name | string | Exact fast flag name to read. |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
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.
使用 1 个参数调用: name。参数表会说明哪些值必填,哪些值只用于细化行为。
返回 flagValue (string | nil)。使用返回表区分成功值、nil 结果和可恢复错误。
示例
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