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.

Syntax
Luau
getfflagtype(name: string) -> string

Parameters

Function parameters
ParameterTypeDescription
namestringFast Flag name to inspect.

Returns

string

A 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

Example
Luau
local flagName = "DocsExampleFlag"
setfflag(flagName, "enabled")
print("Host type:", getfflagtype(flagName)) -- May be unknown.
Kawaii documentation