Miscellaneous

getfflag

Reads a Roblox fast flag by exact name and returns its value as a string.

语法

getfflag(name: string): string | nil

参数

名称类型描述
namestringExact fast flag name to read.

返回值

名称类型描述
flagValuestring | nilString 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