isavailable

Checks whether an executor global exists.

Syntax

Signature
isavailable(Name: string) -> boolean

Aliases

This function has no aliases.

Parameters

ParameterTypeDescription
NamestringGlobal name to look up.

Returns

TypeDescription
booleanWhether the exact global key has a non-nil value.

Notes

Returns true when the value is not nil, including when it is false. Metatable lookups are not used.

Example

Luau
print(isavailable("getgenv"))