getfflagtype Synchronous
getfastflagtype
Ask the host registry what kind of Fast Flag a name refers to. Check the type before interpreting the string returned by getfflag.
Luau
getfflagtype(name: string) -> stringParameters
| Parameter | Type | Description |
|---|---|---|
name | string | Fast Flag name to inspect. |
Returns
stringA type label such as bool, int, or string; unknown when lookup fails.
Usage notes
This checks the host flag registry. A name added only with setfflag can still report unknown.
Example
Luau
local flagName = "DocsExampleFlag"
setfflag(flagName, "enabled")
print("Host type:", getfflagtype(flagName)) -- May be unknown.