Syntax
getfflagtype(name: string): "string" | "bool" | "int" | "unknown"Arguments
| Name | Type | Description |
|---|---|---|
name | string | Exact FFlag name to find in the fast flag list. |
Returns
| Name | Type | Description |
|---|---|---|
flagType | "string" | "bool" | "int" | "unknown" | Detected flag type string: "string", "bool", "int", or "unknown". |
Description
Returns the detected type for a Roblox fast flag as exactly one string. The name argument is required and must be a string; type checking raises a type error for other types. The function finds the flag with fast flag lookup, then classifies the vtable with fast flag type detection. Missing flags and Unknown types return "unknown". String flags return "string". BoolStr and Bool flags both return "bool". Int flags return "int". getfflagtype has no registered alias.
Call it with 1 parameter(s): name. The argument table explains which values are required and which ones only refine the behavior.
It returns flagType ("string" | "bool" | "int" | "unknown"). Use the returns table to separate successful values from nil results and recoverable errors.
Example
Read the detected type for a Roblox fast flag by exact name.
local flagType = getfflagtype("SomeFFlagName")
if flagType ~= "unknown" then
print(flagType)
end