Miscellaneous

getfflagtype

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

语法

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

参数

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

返回值

名称类型描述
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".

使用 1 个参数调用: name。参数表会说明哪些值必填,哪些值只用于细化行为。

返回 flagType ("string" | "bool" | "int" | "unknown")。使用返回表区分成功值、nil 结果和可恢复错误。

示例

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

local flagType = getfflagtype("SomeFFlagName")

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