isavailable
Checks whether an executor global exists.
Syntax
Signature
isavailable(Name: string) -> booleanAliases
This function has no aliases.
Parameters
| Parameter | Type | Description |
|---|---|---|
Name | string | Global name to look up. |
Returns
| Type | Description |
|---|---|
boolean | Whether 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"))